Change currency picker style to navigation link
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user