Swap XMR and XRP through kyc.rip without leaving the app

This commit is contained in:
2026-10-07 21:01:34 +08:00
parent 31429e6923
commit 4fa1584dfc
6 changed files with 631 additions and 0 deletions
+5
View File
@@ -8,6 +8,7 @@ enum Route: Equatable {
case send
case receive
case accounts
case swap
}
struct SeedBox: Identifiable {
@@ -26,6 +27,7 @@ struct RootView: View {
if arguments.contains("-koinsScreenAccounts") { return .accounts }
if arguments.contains("-koinsScreenSend") { return .send }
if arguments.contains("-koinsScreenReceive") { return .receive }
if arguments.contains("-koinsScreenSwap") { return .swap }
return .home
}
@State private var seedBox: SeedBox?
@@ -50,6 +52,8 @@ struct RootView: View {
ReceiveView(route: $route)
case .accounts:
AccountsView(route: $route)
case .swap:
SwapView(route: $route)
}
}
.padding(.horizontal, 20)
@@ -233,6 +237,7 @@ struct HomeView: View {
HStack(spacing: 10) {
PrimaryButton(title: "Send") { route = .send }
SecondaryButton(title: "Receive") { route = .receive }
SecondaryButton(title: "Swap") { route = .swap }
}
if model.chain == .xmr {