The final project is crashing when you try to add a new alarm on this part of the project:
.sheet(isPresented: $showNewAlarm, content: {
AlarmView(alarm: self.alarmList.last!)
})
I’ll really appreciate if you can please let me know why is crashing or how can this be fixed.