The Startup
Published in

The Startup

Clean AppDelegate

How can you make sure your AppDelegate has a single responsibility?

The App Delegate has many responsibilities by default, including crash reporting, analytics, setting up the CoreData stack, notifications etc.

This breaks the Single Responsibility principle because the AppDelegate handles too many things.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store