@@ -74,7 +74,7 @@ public struct UnfinalizedDose: RawRepresentable, Equatable, CustomStringConverti
7474 return units
7575 }
7676
77- init ( bolusAmount: Double , startTime: Date , duration: TimeInterval , insulinType: InsulinType ? , automatic: Bool ) {
77+ init ( bolusAmount: Double , startTime: Date , duration: TimeInterval , insulinType: InsulinType ? = nil , automatic: Bool = false ) {
7878 self . doseType = . bolus
7979 self . units = bolusAmount
8080 self . startTime = startTime
@@ -84,7 +84,7 @@ public struct UnfinalizedDose: RawRepresentable, Equatable, CustomStringConverti
8484 self . automatic = automatic
8585 }
8686
87- init ( tempBasalRate: Double , startTime: Date , duration: TimeInterval , insulinType: InsulinType ? ) {
87+ init ( tempBasalRate: Double , startTime: Date , duration: TimeInterval , insulinType: InsulinType ? = nil ) {
8888 self . doseType = . tempBasal
8989 self . units = tempBasalRate * duration. hours
9090 self . startTime = startTime
@@ -103,7 +103,7 @@ public struct UnfinalizedDose: RawRepresentable, Equatable, CustomStringConverti
103103 self . automatic = false
104104 }
105105
106- init ( resumeStartTime: Date , insulinType: InsulinType ? ) {
106+ init ( resumeStartTime: Date , insulinType: InsulinType ? = nil ) {
107107 self . doseType = . resume
108108 self . units = 0
109109 self . startTime = resumeStartTime
0 commit comments