mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Add a non-functional preferences view with a RadioGroupPicker
This commit is contained in:
parent
fb7c188ca0
commit
0bf89b4cff
23
macOS/Settings/Preferences.swift
Normal file
23
macOS/Settings/Preferences.swift
Normal 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()
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user