File tree Expand file tree Collapse file tree 1 file changed +16
-19
lines changed
BDKSwiftExampleWallet/View Expand file tree Collapse file tree 1 file changed +16
-19
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ struct WalletView: View {
72
72
. foregroundColor ( . secondary)
73
73
. font ( . subheadline)
74
74
}
75
- . padding ( . bottom , 20.0 )
75
+ . padding ( . vertical , 20.0 )
76
76
77
77
VStack {
78
78
HStack {
@@ -142,6 +142,21 @@ struct WalletView: View {
142
142
}
143
143
. foregroundColor ( . secondary)
144
144
. 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
+
145
160
}
146
161
. fontWeight ( . bold)
147
162
TransactionListView (
@@ -155,24 +170,6 @@ struct WalletView: View {
155
170
viewModel. getTransactions ( )
156
171
await viewModel. getPrices ( )
157
172
}
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 ( )
176
173
177
174
HStack {
178
175
Button ( action: {
You can’t perform that action at this time.
0 commit comments