Support Dark Mode in Legacy iOS App on iOS 13

Today I updated You Doodle for iOS 13 and added dark and light mode support. For a legacy application with all objective-c code and no storyboards, swift ui or other “goodies”, I needed a way to use my existing theming and appearance proxy code.

I chose to support dark/light mode in the application did become active event. I already have my own theming code that changes all the icons and colors and notifies anyone who is interested that the theme has changed.

Here is the code, you’ll need to of course swap it out with your own root view controller, and get/set app theme methods and enums.

Leave a Reply

avatar

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
Notify of