Skip to content

Commit d491a43

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

File tree

1 file changed

+24
-14
lines changed

1 file changed

+24
-14
lines changed

BDKSwiftExampleWallet/View/WalletView.swift

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,30 @@ 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+
.foregroundColor(.bitcoinOrange)
199+
176200
}
177201

178202
}
@@ -222,13 +246,6 @@ struct WalletView: View {
222246
}
223247
}
224248
.toolbar {
225-
ToolbarItem(placement: .navigationBarLeading) {
226-
Button(action: {
227-
showReceiveView = true
228-
}) {
229-
Image(systemName: "qrcode")
230-
}
231-
}
232249
ToolbarItem(placement: .navigation) {
233250
VStack {
234251
Text("Navigation Title")
@@ -242,13 +259,6 @@ struct WalletView: View {
242259
Image(systemName: "person.and.background.dotted")
243260
}
244261
}
245-
ToolbarItem(placement: .navigationBarTrailing) {
246-
Button(action: {
247-
sendNavigationPath.append(NavigationDestination.amount)
248-
}) {
249-
Image(systemName: "qrcode.viewfinder")
250-
}
251-
}
252262
}
253263

254264
}

0 commit comments

Comments
 (0)