I have a master detail arrangement of 2 views, a list on one from which the user selects a record in Core Data which links to a detail view (NavigationLink) where the user edits the corresponding record. On the edit view there is a Save button, but the big default dismiss button provided to the NavigationLink lets the user dismiss the view without saving, which is likely to happen.
Is there some modifier / event handler that will let me throw up an alert if the user has unsaved edits?