Skip to content

Commit 2da8841

Browse files
authored
ui: buttons
* ui: buttons homeview * ui: button settings
1 parent 24f9a9b commit 2da8841

File tree

1 file changed

+18
-21
lines changed

1 file changed

+18
-21
lines changed

BDKSwiftExampleWallet/View/WalletView.swift

Lines changed: 18 additions & 21 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
}
@@ -210,8 +190,25 @@ struct WalletView: View {
210190
Button {
211191
showSettingsView = true
212192
} label: {
213-
Image(systemName: "person.and.background.dotted")
193+
Image(systemName: "ellipsis")
194+
}
195+
}
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")
214210
}
211+
.disabled(!viewModel.canSend)
215212
}
216213
}
217214
}

0 commit comments

Comments
 (0)