An Alert is a good solution for helping a user avoid an unintentional loss of data. Along with the “sheet”, it’s another type of modal View.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/25836622-your-second-ios-swiftui-app/lessons/14