fixed alignment
This commit is contained in:
@@ -27,10 +27,18 @@ struct SelectWalletView: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
NavigationView {
|
NavigationView {
|
||||||
|
Form {
|
||||||
VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
Section("Invoice") {
|
Text("Copy invoice")
|
||||||
|
.bold()
|
||||||
|
.font(.title3)
|
||||||
|
.multilineTextAlignment(.center)
|
||||||
|
.padding([.bottom, .top], 8)
|
||||||
HStack {
|
HStack {
|
||||||
Text(invoice)
|
Text(invoice).font(.body)
|
||||||
|
.multilineTextAlignment(.center)
|
||||||
|
.lineLimit(3)
|
||||||
|
.truncationMode(.tail)
|
||||||
|
|
||||||
Image(systemName: self.invoice_copied ? "checkmark.circle" : "doc.on.doc")
|
Image(systemName: self.invoice_copied ? "checkmark.circle" : "doc.on.doc")
|
||||||
}
|
}
|
||||||
@@ -39,7 +47,12 @@ struct SelectWalletView: View {
|
|||||||
self.invoice_copied = true
|
self.invoice_copied = true
|
||||||
generator.impactOccurred()
|
generator.impactOccurred()
|
||||||
}
|
}
|
||||||
}
|
Spacer()
|
||||||
|
Text("Select a lightning wallet")
|
||||||
|
.bold()
|
||||||
|
.font(.title3)
|
||||||
|
.multilineTextAlignment(.center)
|
||||||
|
.padding([.bottom], 8)
|
||||||
ForEach(walletItems) { wallet in
|
ForEach(walletItems) { wallet in
|
||||||
HStack(spacing: 20) {
|
HStack(spacing: 20) {
|
||||||
Image(wallet.image)
|
Image(wallet.image)
|
||||||
@@ -59,13 +72,14 @@ struct SelectWalletView: View {
|
|||||||
Divider()
|
Divider()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.navigationBarTitle(Text("Select Wallet"), displayMode: .inline)
|
.navigationBarTitle(Text("Pay the lightning invoice"), displayMode: .inline)
|
||||||
.navigationBarItems(trailing: Button(action: {
|
.navigationBarItems(trailing: Button(action: {
|
||||||
self.show_select_wallet = false
|
self.show_select_wallet = false
|
||||||
}) {
|
}) {
|
||||||
Text("Done").bold()
|
Text("Done").bold()
|
||||||
})
|
})
|
||||||
}.padding([.leading, .trailing], 6)
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user