Add a non-functional preferences view with a RadioGroupPicker

This commit is contained in:
Angelo Stavrow 2020-08-07 16:30:39 -04:00
parent fb7c188ca0
commit 0bf89b4cff
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -0,0 +1,23 @@
import SwiftUI
struct Preferences: View {
@State private var appearance: Int = 0
var body: some View {
Form {
Picker(selection: $appearance, label: Text("Appearance")) {
Text("System").tag(0)
Text("Light Mode").tag(1)
Text("Dark Mode").tag(2)
}
.frame(width: 200, height: 100, alignment: .topLeading)
.pickerStyle(RadioGroupPickerStyle())
}
}
}
struct SwiftUIView_Previews: PreviewProvider {
static var previews: some View {
Preferences()
}
}