@@ -18,6 +18,9 @@ struct SettingsView: View {
18
18
var isSmallDevice : Bool {
19
19
UIScreen . main. isPhoneSE
20
20
}
21
+ private var isKyotoClient : Bool {
22
+ viewModel. bdkClient. getClientType ( ) == . kyoto
23
+ }
21
24
22
25
var body : some View {
23
26
@@ -65,25 +68,27 @@ struct SettingsView: View {
65
68
colorScheme == . light ? Color . gray. opacity ( 0.1 ) : Color . black. opacity ( 0.2 )
66
69
)
67
70
68
- Section ( header: Text ( " Wallet " ) ) {
69
- Button {
70
- Task {
71
- await viewModel. fullScanWithProgress ( )
71
+ if !isKyotoClient {
72
+ Section ( header: Text ( " Wallet " ) ) {
73
+ Button {
74
+ Task {
75
+ await viewModel. fullScanWithProgress ( )
76
+ }
77
+ } label: {
78
+ Text ( " Full Scan " )
79
+ }
80
+ . foregroundStyle ( Color . bitcoinOrange)
81
+ if viewModel. walletSyncState == . syncing {
82
+ Text ( " \( viewModel. inspectedScripts) " )
83
+ . contentTransition ( . numericText( ) )
84
+ . foregroundStyle ( . primary)
85
+ . animation ( . easeInOut, value: viewModel. inspectedScripts)
72
86
}
73
- } label: {
74
- Text ( " Full Scan " )
75
- }
76
- . foregroundStyle ( Color . bitcoinOrange)
77
- if viewModel. walletSyncState == . syncing {
78
- Text ( " \( viewModel. inspectedScripts) " )
79
- . contentTransition ( . numericText( ) )
80
- . foregroundStyle ( . primary)
81
- . animation ( . easeInOut, value: viewModel. inspectedScripts)
82
87
}
88
+ . listRowBackground (
89
+ colorScheme == . light ? Color . gray. opacity ( 0.1 ) : Color . black. opacity ( 0.2 )
90
+ )
83
91
}
84
- . listRowBackground (
85
- colorScheme == . light ? Color . gray. opacity ( 0.1 ) : Color . black. opacity ( 0.2 )
86
- )
87
92
88
93
Section ( header: Text ( " Danger Zone " ) ) {
89
94
Button {
0 commit comments