@James, when you post code, please put three backticks ```
on the line before your code block and three backticks ```
on the line after your code block. That will format it nicely for display on the forum so that it is easier for others to read your code and copy/paste it to try out solutions. It is rather difficult to read code and figure out what it's doing when it's all run together like a paragraph.
This:
Section(header: Text("Project reminders")) { Toggle( "Show Reminders", isOn: $remindMe.animation()) .alert(isPresented: $showingNotificationsError) { Alert(title: Text("Ughh"), message: Text( "Make sure notifications are enabled"), primaryButton: .default(Text( "Check Settings"), action: showAppSettings), secondaryButton: .cancel()) }
if remindMe {
DatePicker(
"Reminder Time", selection: $reminderTime,
displayedComponents: .hourAndMinute)
vs this:
Section(header: Text("Project reminders")) {
Toggle( "Show Reminders", isOn: $remindMe.animation())
.alert(isPresented: $showingNotificationsError) {
Alert(title: Text("Ughh"), message: Text( "Make sure notifications are enabled"), primaryButton: .default(Text( "Check Settings"), action: showAppSettings), secondaryButton: .cancel())
}
if remindMe {
DatePicker(
"Reminder Time", selection: $reminderTime,
displayedComponents: .hourAndMinute)