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 smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +756K followers.

Recommended from Medium

How to update the view height with animation programmatically

Creating a Fastlane action to publish code coverage on Github

The MVI Architecture Pattern in Swift

Best Open Source Coronavirus COVID-19 iOS Apps written in SwiftUI

Imperative vs. Declarative Swift Programming

Position, Move and Stretch a UIView with contentMode

Debounce before Combine era

Clickable and Editable UITextView

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
Steven Curtis

Steven Curtis

stevecurtis.me

More from Medium

Generating xcodeproj’s with Xcodegen

Regex Text Validator in Swift

SOLID-The open-close principle in Swift

Retain Cycles and Memory Management in Swift