|
|
|
@ -56,7 +56,6 @@ struct CountdownEditView : View { |
|
|
|
@State var duration: TimeInterval = 0.0 |
|
|
|
@State var duration: TimeInterval = 0.0 |
|
|
|
|
|
|
|
|
|
|
|
// @State var soundRepeatCount: Int16 = 0 |
|
|
|
// @State var soundRepeatCount: Int16 = 0 |
|
|
|
@State var image: CoolPic = .pic1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@State var deleteConfirmationShown: Bool = false |
|
|
|
@State var deleteConfirmationShown: Bool = false |
|
|
|
@State var activityNameConfirmationShown: Bool = false |
|
|
|
@State var activityNameConfirmationShown: Bool = false |
|
|
|
@ -106,7 +105,6 @@ struct CountdownEditView : View { |
|
|
|
focusedField: _focusedField, |
|
|
|
focusedField: _focusedField, |
|
|
|
nameBinding: $nameString, |
|
|
|
nameBinding: $nameString, |
|
|
|
durationBinding: $duration, |
|
|
|
durationBinding: $duration, |
|
|
|
imageBinding: $image, |
|
|
|
|
|
|
|
hasRanges: self.hasRanges) |
|
|
|
hasRanges: self.hasRanges) |
|
|
|
.environmentObject(self.model) |
|
|
|
.environmentObject(self.model) |
|
|
|
|
|
|
|
|
|
|
|
@ -223,7 +221,6 @@ struct CountdownEditView : View { |
|
|
|
|
|
|
|
|
|
|
|
if let image = countdown.image, |
|
|
|
if let image = countdown.image, |
|
|
|
let coolpic = CoolPic(rawValue: image) { |
|
|
|
let coolpic = CoolPic(rawValue: image) { |
|
|
|
self.image = coolpic |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -260,7 +257,6 @@ struct CountdownEditView : View { |
|
|
|
cd.order = max |
|
|
|
cd.order = max |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
cd.image = self.image.rawValue |
|
|
|
|
|
|
|
cd.playableIds = self.model.soundModel.playableIds |
|
|
|
cd.playableIds = self.model.soundModel.playableIds |
|
|
|
cd.setConfirmationSounds(self.model.confirmationSoundModel.sounds) |
|
|
|
cd.setConfirmationSounds(self.model.confirmationSoundModel.sounds) |
|
|
|
cd.repeatCount = self.model.repeatCount |
|
|
|
cd.repeatCount = self.model.repeatCount |
|
|
|
|