File tree Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import Intents
11
11
import Combine
12
12
import LoopKit
13
13
import LoopKitUI
14
+ import TidepoolKit
14
15
import MockKit
15
16
import HealthKit
16
17
import WidgetKit
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ extension UserDefaults {
20
20
case lastProfileExpirationAlertDate = " com.loopkit.Loop.lastProfileExpirationAlertDate "
21
21
case allowDebugFeatures = " com.loopkit.Loop.allowDebugFeatures "
22
22
case allowSimulators = " com.loopkit.Loop.allowSimulators "
23
- case studyProductSelection = " com.loopkit.Loop.studyProductSelection "
24
23
case resetLoop = " com.loopkit.Loop.resetLoop "
25
24
}
26
25
@@ -129,15 +128,6 @@ extension UserDefaults {
129
128
return bool ( forKey: Key . allowSimulators. rawValue)
130
129
}
131
130
132
- public var studyProductSelection : String ? {
133
- get {
134
- string ( forKey: Key . studyProductSelection. rawValue)
135
- }
136
- set {
137
- set ( newValue, forKey: Key . studyProductSelection. rawValue)
138
- }
139
- }
140
-
141
131
public var resetLoop : Bool {
142
132
get {
143
133
bool ( forKey: Key . resetLoop. rawValue)
Original file line number Diff line number Diff line change @@ -26,8 +26,7 @@ struct BasalView: View {
26
26
. foregroundColor ( ( isOld ? Color ( UIColor . systemGray3) : Color ( " insulin " ) ) . opacity ( 0.5 ) )
27
27
. frame ( width: 44 , height: 22 )
28
28
29
- if let rate = rate,
30
- let rateString = decimalFormatter. string ( from: NSNumber ( value: rate) ) {
29
+ if let rateString = decimalFormatter. string ( from: NSNumber ( value: rate) ) {
31
30
Text ( " \( rateString) U " )
32
31
. font ( . footnote)
33
32
. foregroundColor ( Color ( isOld ? UIColor . systemGray3 : UIColor . secondaryLabel) )
You can’t perform that action at this time.
0 commit comments