Skip to content

Commit 1d438dd

Browse files
authored
ui: move qrcode buttons from toolbar to bottom of view
1 parent 48a7549 commit 1d438dd

File tree

1 file changed

+23
-14
lines changed

1 file changed

+23
-14
lines changed

BDKSwiftExampleWallet/View/WalletView.swift

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,29 @@ struct WalletView: View {
173173
.padding()
174174
}
175175
Spacer()
176+
177+
HStack {
178+
Button(action: {
179+
showReceiveView = true
180+
}) {
181+
Image(systemName: "qrcode")
182+
.font(.title)
183+
.foregroundColor(.primary)
184+
}
185+
186+
Spacer()
187+
188+
Button(action: {
189+
sendNavigationPath.append(NavigationDestination.amount)
190+
}) {
191+
Image(systemName: "qrcode.viewfinder")
192+
.font(.title)
193+
.foregroundColor(.primary)
194+
195+
}
196+
}
197+
.padding([.horizontal, .bottom])
198+
176199
}
177200

178201
}
@@ -222,13 +245,6 @@ struct WalletView: View {
222245
}
223246
}
224247
.toolbar {
225-
ToolbarItem(placement: .navigationBarLeading) {
226-
Button(action: {
227-
showReceiveView = true
228-
}) {
229-
Image(systemName: "qrcode")
230-
}
231-
}
232248
ToolbarItem(placement: .navigation) {
233249
VStack {
234250
Text("Navigation Title")
@@ -242,13 +258,6 @@ struct WalletView: View {
242258
Image(systemName: "person.and.background.dotted")
243259
}
244260
}
245-
ToolbarItem(placement: .navigationBarTrailing) {
246-
Button(action: {
247-
sendNavigationPath.append(NavigationDestination.amount)
248-
}) {
249-
Image(systemName: "qrcode.viewfinder")
250-
}
251-
}
252261
}
253262

254263
}

0 commit comments

Comments
 (0)