This commit is contained in:
Trey t
2023-07-17 23:33:18 -05:00
parent af538362e8
commit 2753e31f24
8 changed files with 85 additions and 27 deletions

View File

@@ -12,7 +12,8 @@ struct AccountView: View {
@State var completedWorkouts: [CompletedWorkout]?
@ObservedObject var userStore = UserStore.shared
@State var showCompletedWorkouts: Bool = false
@AppStorage("thotStyle") private var thotStyle: ThotStyle = .never
@AppStorage(Constants.phoneThotStyle) private var phoneThotStyle: ThotStyle = .never
@AppStorage(Constants.extThotStyle) private var extThotStyle: ThotStyle = .never
var body: some View {
VStack(alignment: .leading) {
@@ -62,11 +63,22 @@ struct AccountView: View {
}
}
Divider()
Picker("THOT Style:", selection: $thotStyle) {
Text("Phone THOT Style:")
Picker("Phone THOT Style:", selection: $phoneThotStyle) {
ForEach(ThotStyle.allCases, id: \.self) { style in
Text(style.stringValue())
.tag(thotStyle.rawValue)
.tag(phoneThotStyle.rawValue)
}
}
.pickerStyle(.segmented)
Divider()
Text("External THOT Style:")
Picker("External THOT Style:", selection: $extThotStyle) {
ForEach(ThotStyle.allCases, id: \.self) { style in
Text(style.stringValue())
.tag(extThotStyle.rawValue)
}
}
.pickerStyle(.segmented)