Skip to content

Commit f8048c0

Browse files
committed
ui: buttons homeview
1 parent 24f9a9b commit f8048c0

File tree

1 file changed

+17
-20
lines changed

1 file changed

+17
-20
lines changed

BDKSwiftExampleWallet/View/WalletView.swift

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -76,26 +76,6 @@ struct WalletView: View {
7676
}
7777
}
7878

79-
HStack {
80-
Button {
81-
showReceiveView = true
82-
} label: {
83-
Image(systemName: "qrcode")
84-
.font(.title)
85-
.foregroundStyle(.primary)
86-
}
87-
88-
Spacer()
89-
90-
NavigationLink(value: NavigationDestination.address) {
91-
Image(systemName: "qrcode.viewfinder")
92-
.font(.title)
93-
.foregroundStyle(viewModel.canSend ? .primary : .secondary)
94-
}
95-
.disabled(!viewModel.canSend)
96-
}
97-
.padding([.horizontal, .bottom])
98-
9979
}
10080

10181
}
@@ -213,6 +193,23 @@ struct WalletView: View {
213193
Image(systemName: "person.and.background.dotted")
214194
}
215195
}
196+
197+
ToolbarItemGroup(placement: .bottomBar) {
198+
Button {
199+
showReceiveView = true
200+
} label: {
201+
Image(systemName: "qrcode")
202+
}
203+
204+
Spacer()
205+
206+
Button {
207+
sendNavigationPath.append(NavigationDestination.address)
208+
} label: {
209+
Image(systemName: "qrcode.viewfinder")
210+
}
211+
.disabled(!viewModel.canSend)
212+
}
216213
}
217214
}
218215
}

0 commit comments

Comments
 (0)