Suhail Saqan
2 years ago
No known key found for this signature in database
GPG Key ID: C3E8D33BFD16C6E6
1 changed files with
47 additions and
33 deletions
-
damus/Views/SelectWalletView.swift
|
|
@ -27,10 +27,18 @@ struct SelectWalletView: View { |
|
|
|
|
|
|
|
var body: some View { |
|
|
|
NavigationView { |
|
|
|
Form { |
|
|
|
VStack(alignment: .leading) { |
|
|
|
Section("Invoice") { |
|
|
|
Text("Copy invoice") |
|
|
|
.bold() |
|
|
|
.font(.title3) |
|
|
|
.multilineTextAlignment(.center) |
|
|
|
.padding([.bottom, .top], 8) |
|
|
|
HStack { |
|
|
|
Text(invoice) |
|
|
|
Text(invoice).font(.body) |
|
|
|
.multilineTextAlignment(.center) |
|
|
|
.lineLimit(3) |
|
|
|
.truncationMode(.tail) |
|
|
|
|
|
|
|
Image(systemName: self.invoice_copied ? "checkmark.circle" : "doc.on.doc") |
|
|
|
} |
|
|
@ -39,7 +47,12 @@ struct SelectWalletView: View { |
|
|
|
self.invoice_copied = true |
|
|
|
generator.impactOccurred() |
|
|
|
} |
|
|
|
} |
|
|
|
Spacer() |
|
|
|
Text("Select a lightning wallet") |
|
|
|
.bold() |
|
|
|
.font(.title3) |
|
|
|
.multilineTextAlignment(.center) |
|
|
|
.padding([.bottom], 8) |
|
|
|
ForEach(walletItems) { wallet in |
|
|
|
HStack(spacing: 20) { |
|
|
|
Image(wallet.image) |
|
|
@ -59,13 +72,14 @@ struct SelectWalletView: View { |
|
|
|
Divider() |
|
|
|
} |
|
|
|
} |
|
|
|
.navigationBarTitle(Text("Select Wallet"), displayMode: .inline) |
|
|
|
.navigationBarTitle(Text("Pay the lightning invoice"), displayMode: .inline) |
|
|
|
.navigationBarItems(trailing: Button(action: { |
|
|
|
self.show_select_wallet = false |
|
|
|
}) { |
|
|
|
Text("Done").bold() |
|
|
|
}) |
|
|
|
}.padding([.leading, .trailing], 6) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|