|
|
|
|
@ -26,18 +26,12 @@ struct SettingsView: View { |
|
|
|
|
.onChange(of: self.confirmationSound) { newValue in |
|
|
|
|
Preferences.playConfirmationSound = newValue |
|
|
|
|
} |
|
|
|
|
// Toggle("Play cancellation sound", isOn: self.$cancellationSound) |
|
|
|
|
// .onChange(of: self.cancellationSound) { newValue in |
|
|
|
|
// Preferences.playCancellationSound = newValue |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Toggle("Raise sound on launch", isOn: self.$raiseSoundOnLaunch) |
|
|
|
|
Toggle("Adjust volume on launch", isOn: self.$raiseSoundOnLaunch) |
|
|
|
|
.onChange(of: self.raiseSoundOnLaunch) { newValue in |
|
|
|
|
Preferences.raiseSoundOnLaunch = newValue |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if self.raiseSoundOnLaunch { |
|
|
|
|
HStack { |
|
|
|
|
Text("Default Volume") |
|
|
|
|
@ -54,7 +48,7 @@ struct SettingsView: View { |
|
|
|
|
Button { |
|
|
|
|
self.showMailView = true |
|
|
|
|
} label: { |
|
|
|
|
Text("Contact us") |
|
|
|
|
Label("Contact us", systemImage: "mail") |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
if self.emailCopied { |
|
|
|
|
@ -97,7 +91,6 @@ struct SettingsView: View { |
|
|
|
|
} |
|
|
|
|
.navigationTitle("Settings") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fileprivate func _requestReview() { |
|
|
|
|
|