Mercurial > public > geoquiz
comparison GeoQuiz/SettingsModalView.swift @ 7:d945e52b0704
implement dynamic map
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Tue, 04 Oct 2022 18:54:24 +0200 |
parents | f31a61462e7a |
children | 3540c7efc216 |
comparison
equal
deleted
inserted
replaced
6:1946bbfde4af | 7:d945e52b0704 |
---|---|
8 import SwiftUI | 8 import SwiftUI |
9 | 9 |
10 struct SettingsModalView: View { | 10 struct SettingsModalView: View { |
11 @Environment(\.dismiss) var dismiss | 11 @Environment(\.dismiss) var dismiss |
12 | 12 |
13 // CHANGE THIS IN PRODUCTION | |
14 @State private var testHapticsIsOn = true | |
15 @State private var testGameEffectIsOn = true | |
16 // CHANGE THIS IN PRODUCTION | |
17 | |
18 var body: some View { | 13 var body: some View { |
19 NavigationView { | 14 NavigationView { |
20 Form { | 15 Form { |
21 Toggle("Haptics is on", isOn: $testHapticsIsOn) | 16 Section { |
22 Toggle("Game effect is on", isOn: $testGameEffectIsOn) | 17 // Difficulty |
18 } header: { | |
19 Text("Game") | |
20 } footer: { | |
21 Text("The harder the difficulty the less lives you get.") | |
22 } | |
23 | |
24 Section { | |
25 // Toggle to disable haptics | |
26 // Toggle to disable sound effects | |
27 } header: { | |
28 Text("Effects") | |
29 } | |
30 | |
31 Section { | |
32 // About | |
33 // Report bugs | |
34 // Twitter | |
35 } header: { | |
36 Text("Get in touch") | |
37 } | |
23 } | 38 } |
24 .navigationTitle("Settings") | 39 .navigationTitle("Settings") |
25 .toolbar { | 40 .toolbar { |
26 ToolbarItem(placement: .cancellationAction) { | 41 ToolbarItem(placement: .cancellationAction) { |
27 Button { | 42 Button { |