fixed alignment
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user