skip to Main Content

Xcode – Presenting Confirmation Dialog with 2 different properties

I want to present Confirmation Dialog with 2 different binding properties, something like this: .confirmationDialog("", isPresented: $calendarViewModel.showingDeleteEventDialog || $remindersViewModel.showingDeleteReminderDialog) { Button("Delete", role: .destructive) { switch detailType { case .reminder: remindersViewModel.deleteReminder() case .event: calendarViewModel.deleteEvent() } } Button("Cancel", role: .cancel) { }…

VIEW QUESTION
Back To Top
Search