@@ -11,20 +11,28 @@ extension UIImpactFeedbackGenerator.FeedbackStyle: CaseIterable {
1111}
1212
1313struct GeneralSettingsView : View {
14-
14+ // timer settings
1515 @AppStorage ( gsKeys. inspection. rawValue) private var inspectionTime : Bool = false
16+ @AppStorage ( gsKeys. inspectionCountsDown. rawValue) private var insCountDown : Bool = false
1617 @AppStorage ( gsKeys. freeze. rawValue) private var holdDownTime : Double = 0.5
1718 @AppStorage ( gsKeys. timeDpWhenRunning. rawValue) private var timerDP : Int = 3
18- @AppStorage ( gsKeys. hapBool. rawValue) private var hapticFeedback : Bool = true
19- @AppStorage ( gsKeys. hapType. rawValue) private var feedbackType : UIImpactFeedbackGenerator . FeedbackStyle = . rigid
20- @AppStorage ( gsKeys. gestureDistance. rawValue) private var gestureActivationDistance : Double = 50
21- @AppStorage ( gsKeys. displayDP. rawValue) private var displayDP : Int = 3
2219
20+ // timer tools
2321 @AppStorage ( gsKeys. showScramble. rawValue) private var showScramble : Bool = true
2422 @AppStorage ( gsKeys. showStats. rawValue) private var showStats : Bool = true
2523
24+ // accessibility
25+ @AppStorage ( gsKeys. hapBool. rawValue) private var hapticFeedback : Bool = true
26+ @AppStorage ( gsKeys. hapType. rawValue) private var feedbackType : UIImpactFeedbackGenerator . FeedbackStyle = . rigid
2627 @AppStorage ( gsKeys. scrambleSize. rawValue) private var scrambleSize : Int = 18
27- @AppStorage ( gsKeys. inspectionCountsDown. rawValue) private var insCountDown : Bool = false
28+ @AppStorage ( gsKeys. gestureDistance. rawValue) private var gestureActivationDistance : Double = 50
29+
30+ // statistics
31+ @AppStorage ( gsKeys. displayDP. rawValue) private var displayDP : Int = 3
32+
33+
34+ @Environment ( \. colorScheme) var colourScheme
35+ @EnvironmentObject var stopWatchManager : StopWatchManager
2836
2937 @AppStorage ( asKeys. accentColour. rawValue) private var accentColour : Color = . indigo
3038
@@ -36,15 +44,6 @@ struct GeneralSettingsView: View {
3644 UIImpactFeedbackGenerator . FeedbackStyle. rigid: " Rigid "
3745 ]
3846
39- @Environment ( \. colorScheme) var colourScheme
40-
41- @EnvironmentObject var stopWatchManager : StopWatchManager
42-
43-
44- // im thinking of using these interval modes: seconds, 0.1s, 0.001, your refresh rate
45- // and for haptics just .light, .medium, .heavy, .rigid, .soft
46- // and we need to have a clear to defaults option or something
47-
4847 var body : some View {
4948 VStack ( spacing: 16 ) {
5049 VStack {
0 commit comments