|
|
|
|
@ -22,7 +22,7 @@ struct DialView: View { |
|
|
|
|
var body: some View { |
|
|
|
|
ZStack { |
|
|
|
|
|
|
|
|
|
Image(timer.imageName).resizable() |
|
|
|
|
Image(timer.imageName).resizable().saturation(self.isEditingBinding.wrappedValue ? 0.0 : 1.0) |
|
|
|
|
|
|
|
|
|
switch self.isEditingBinding.wrappedValue { |
|
|
|
|
case false: |
|
|
|
|
@ -42,7 +42,7 @@ struct DialView: View { |
|
|
|
|
Image(systemName: "gearshape.fill") |
|
|
|
|
.font(.system(size: 50.0)) |
|
|
|
|
.padding(30.0) |
|
|
|
|
.foregroundColor(Color.white) |
|
|
|
|
.foregroundColor(Color.accentColor) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -114,7 +114,7 @@ struct DialView_Previews: PreviewProvider { |
|
|
|
|
|
|
|
|
|
DialView( |
|
|
|
|
timer: Countdown.fake(context: PersistenceController.preview.container.viewContext), |
|
|
|
|
isEditingBinding: .constant(false), frameSize: 150.0) |
|
|
|
|
isEditingBinding: .constant(true), frameSize: 150.0) |
|
|
|
|
.environmentObject(Conductor.maestro) |
|
|
|
|
.environmentObject(BoringContext()) |
|
|
|
|
|
|
|
|
|
|