@@ -18,6 +18,9 @@ struct SettingsView: View {
1818 var isSmallDevice : Bool {
1919 UIScreen . main. isPhoneSE
2020 }
21+ private var isKyotoClient : Bool {
22+ viewModel. bdkClient. getClientType ( ) == . kyoto
23+ }
2124
2225 var body : some View {
2326
@@ -65,25 +68,27 @@ struct SettingsView: View {
6568 colorScheme == . light ? Color . gray. opacity ( 0.1 ) : Color . black. opacity ( 0.2 )
6669 )
6770
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)
7286 }
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)
8287 }
88+ . listRowBackground (
89+ colorScheme == . light ? Color . gray. opacity ( 0.1 ) : Color . black. opacity ( 0.2 )
90+ )
8391 }
84- . listRowBackground (
85- colorScheme == . light ? Color . gray. opacity ( 0.1 ) : Color . black. opacity ( 0.2 )
86- )
8792
8893 Section ( header: Text ( " Danger Zone " ) ) {
8994 Button {
0 commit comments