Skip to content

Commit be0e172

Browse files
committed
Removed option to choose network when using kyoto
1 parent ddf573f commit be0e172

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

BDKSwiftExampleWallet/View/OnboardingView.swift

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,6 @@ struct OnboardingView: View {
111111
.padding()
112112

113113
Group {
114-
Picker("Network", selection: $viewModel.selectedNetwork) {
115-
Text("Signet").tag(Network.signet)
116-
Text("Testnet").tag(Network.testnet)
117-
Text("Testnet4").tag(Network.testnet4)
118-
}
119-
.pickerStyle(.automatic)
120-
.tint(.primary)
121-
.accessibilityLabel("Select Bitcoin Network")
122-
.opacity(animateContent ? 1 : 0)
123-
.animation(.easeOut(duration: 0.5).delay(1.5), value: animateContent)
124-
125114
Picker("Sync type", selection: $viewModel.syncMode) {
126115
Text("Esplora Server").tag(SyncMode.esplora)
127116
Text("Kyoto").tag(SyncMode.kyoto)
@@ -130,7 +119,7 @@ struct OnboardingView: View {
130119
.tint(.primary)
131120
.opacity(animateContent ? 1 : 0)
132121
.animation(.easeOut(duration: 0.5).delay(1.5), value: animateContent)
133-
122+
134123
if viewModel.syncMode == nil || viewModel.syncMode == .esplora {
135124
Picker("Esplora Server", selection: $viewModel.selectedURL) {
136125
ForEach(viewModel.availableURLs, id: \.self) { url in
@@ -150,7 +139,18 @@ struct OnboardingView: View {
150139
.tint(.primary)
151140
.opacity(animateContent ? 1 : 0)
152141
.animation(.easeOut(duration: 0.5).delay(1.5), value: animateContent)
153-
}
142+
143+
Picker("Network", selection: $viewModel.selectedNetwork) {
144+
Text("Signet").tag(Network.signet)
145+
Text("Testnet").tag(Network.testnet)
146+
Text("Testnet4").tag(Network.testnet4)
147+
}
148+
.pickerStyle(.automatic)
149+
.tint(.primary)
150+
.accessibilityLabel("Select Bitcoin Network")
151+
.opacity(animateContent ? 1 : 0)
152+
.animation(.easeOut(duration: 0.5).delay(1.5), value: animateContent)
153+
}
154154
}
155155

156156
if !viewModel.words.isEmpty {

0 commit comments

Comments
 (0)