File tree Expand file tree Collapse file tree 2 files changed +19
-17
lines changed Expand file tree Collapse file tree 2 files changed +19
-17
lines changed Original file line number Diff line number Diff line change 1
1
//
2
- // BDKService2 .swift
2
+ // BDKSyncService .swift
3
3
// BDKSwiftExampleWallet
4
4
//
5
5
// Created by Rubens Machion on 16/05/25.
Original file line number Diff line number Diff line change @@ -60,25 +60,27 @@ struct SettingsView: View {
60
60
colorScheme == . light ? Color . gray. opacity ( 0.1 ) : Color . black. opacity ( 0.2 )
61
61
)
62
62
63
- Section ( header: Text ( " Wallet " ) ) {
64
- Button {
65
- Task {
66
- await viewModel. fullScanWithProgress ( )
63
+ if viewModel. syncMode == . esplora {
64
+ Section ( header: Text ( " Wallet " ) ) {
65
+ Button {
66
+ Task {
67
+ await viewModel. fullScanWithProgress ( )
68
+ }
69
+ } label: {
70
+ Text ( " Full Scan " )
71
+ }
72
+ . foregroundStyle ( Color . bitcoinOrange)
73
+ if viewModel. walletSyncState == . syncing {
74
+ Text ( " \( viewModel. inspectedScripts) " )
75
+ . contentTransition ( . numericText( ) )
76
+ . foregroundStyle ( . primary)
77
+ . animation ( . easeInOut, value: viewModel. inspectedScripts)
67
78
}
68
- } label: {
69
- Text ( " Full Scan " )
70
- }
71
- . foregroundStyle ( Color . bitcoinOrange)
72
- if viewModel. walletSyncState == . syncing {
73
- Text ( " \( viewModel. inspectedScripts) " )
74
- . contentTransition ( . numericText( ) )
75
- . foregroundStyle ( . primary)
76
- . animation ( . easeInOut, value: viewModel. inspectedScripts)
77
79
}
80
+ . listRowBackground (
81
+ colorScheme == . light ? Color . gray. opacity ( 0.1 ) : Color . black. opacity ( 0.2 )
82
+ )
78
83
}
79
- . listRowBackground (
80
- colorScheme == . light ? Color . gray. opacity ( 0.1 ) : Color . black. opacity ( 0.2 )
81
- )
82
84
83
85
Section ( header: Text ( " Danger Zone " ) ) {
84
86
Button {
You can’t perform that action at this time.
0 commit comments