Integrating AppDelegate with Pluggable Services
Ios 16 Feb 2018 686Find a better way than shifting the responsibilities to pluggable services to manage delegates. Start to use Application Services protocol that will start receiving events. Mirror `AppDelegate` events and create a super class to bind the service events.
Use `PluggableApplicationDelegate` and provide the appropriate service it requires. Creat a pluggable `UIViewController` to create a plug and play view controller life cycle.
"Many techniques have been tried to tame the AppDelegate beast, usually ending up in moving code into private functions or extensions. However, the AppDelegate is much more complex than just moving ..."
More info
#4th
in TOP Mobile articles
Level
Senior