|
|
|
|
@ -24,10 +24,6 @@ struct DialView: View { |
|
|
|
|
var body: some View { |
|
|
|
|
ZStack { |
|
|
|
|
|
|
|
|
|
Image(self.timer.imageName) |
|
|
|
|
.resizable() |
|
|
|
|
.saturation(self.isEditingBinding.wrappedValue ? 0.0 : 1.0) |
|
|
|
|
|
|
|
|
|
switch self.isEditingBinding.wrappedValue { |
|
|
|
|
case false: |
|
|
|
|
Button { |
|
|
|
|
@ -50,38 +46,12 @@ struct DialView: View { |
|
|
|
|
Spacer() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// VStack { |
|
|
|
|
// Spacer() |
|
|
|
|
// self._dialView().padding(.horizontal) |
|
|
|
|
// Spacer() |
|
|
|
|
// } |
|
|
|
|
// |
|
|
|
|
// HStack { |
|
|
|
|
// Spacer() |
|
|
|
|
// NavigationLink { |
|
|
|
|
// self._editView(timer: timer, isPresented: $boringContext.isShowingNewData) |
|
|
|
|
// } label: { |
|
|
|
|
// Image(systemName: "gearshape.fill") |
|
|
|
|
// .font(.system(size: 30.0)) |
|
|
|
|
// .padding(.horizontal) |
|
|
|
|
// .foregroundColor(Color.accentColor) |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
.background(Color(white: 0.95)) |
|
|
|
|
.frame(width: frameSize, height: 80.0) |
|
|
|
|
.cornerRadius(20.0) |
|
|
|
|
// .alert("Make sure your device is not on silent mode", isPresented: $showSilentModeAlert) { |
|
|
|
|
// Button("OK", role: .cancel) { |
|
|
|
|
// self._launchTimer() |
|
|
|
|
// } |
|
|
|
|
// Button("Don't show this again", role: .destructive) { |
|
|
|
|
// self._launchTimer() |
|
|
|
|
// Preferences.hideSilentModeAlerts(true) |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ViewBuilder |
|
|
|
|
@ -102,7 +72,7 @@ struct DialView: View { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.monospaced() |
|
|
|
|
.font(Font.system(size: 16.0, weight: .semibold)) |
|
|
|
|
.font(.system(size: 16.0)) |
|
|
|
|
.foregroundColor(Color.white) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|