Change currency picker style to navigation link

This commit is contained in:
2024-09-14 11:35:22 -04:00
parent ba0be8bb93
commit e38c8dac85

View File

@@ -39,6 +39,7 @@ public struct ContentView: View {
} }
public var body: some View { public var body: some View {
NavigationStack {
Form { Form {
Section { Section {
Picker("Price Source", selection: $priceSource) { Picker("Price Source", selection: $priceSource) {
@@ -56,6 +57,7 @@ public struct ContentView: View {
} }
} }
} }
.pickerStyle(.navigationLink)
HStack { HStack {
TextField("", text: $satsViewModel.btcToCurrencyString) TextField("", text: $satsViewModel.btcToCurrencyString)
@@ -136,6 +138,7 @@ public struct ContentView: View {
.formStyle(.grouped) .formStyle(.grouped)
#endif #endif
} }
}
} }
#Preview { #Preview {