Add an extension to the UIAlertController that offers convenience functions to display an Error as alert.
Use this extension on various places in the view controllers where errors can occur.
Errors in the model (for example when saving a managed object context) must be delegated to the view controllers.
Add an extension to the
UIAlertController
that offers convenience functions to display anError
as alert. Use this extension on various places in the view controllers where errors can occur. Errors in the model (for example when saving a managed object context) must be delegated to the view controllers.