Skip to content

Commit f5fca11

Browse files
authored
ui: move show all button
1 parent 1d438dd commit f5fca11

File tree

1 file changed

+16
-19
lines changed

1 file changed

+16
-19
lines changed

BDKSwiftExampleWallet/View/WalletView.swift

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ struct WalletView: View {
7272
.foregroundColor(.secondary)
7373
.font(.subheadline)
7474
}
75-
.padding(.bottom, 20.0)
75+
.padding(.vertical, 20.0)
7676

7777
VStack {
7878
HStack {
@@ -142,6 +142,21 @@ struct WalletView: View {
142142
}
143143
.foregroundColor(.secondary)
144144
.font(.caption)
145+
146+
if viewModel.walletSyncState == .synced {
147+
Button(action: {
148+
showAllTransactions = true
149+
}) {
150+
HStack(spacing: 2) {
151+
Text("Show All")
152+
Image(systemName: "arrow.right")
153+
}
154+
.font(.caption)
155+
.foregroundColor(.secondary)
156+
.fontWeight(.regular)
157+
}
158+
}
159+
145160
}
146161
.fontWeight(.bold)
147162
TransactionListView(
@@ -155,24 +170,6 @@ struct WalletView: View {
155170
viewModel.getTransactions()
156171
await viewModel.getPrices()
157172
}
158-
if viewModel.walletSyncState == .synced {
159-
Button(action: {
160-
showAllTransactions = true
161-
}) {
162-
Text("Show All")
163-
.font(.caption)
164-
.foregroundColor(.bitcoinOrange)
165-
.padding(.vertical, 5)
166-
.padding(.horizontal, 20)
167-
.background(
168-
Capsule()
169-
.stroke(Color.bitcoinOrange, lineWidth: 1)
170-
.background(Color(.systemBackground))
171-
)
172-
}
173-
.padding()
174-
}
175-
Spacer()
176173

177174
HStack {
178175
Button(action: {

0 commit comments

Comments
 (0)