IOSTraitCollectionThemingExample
This is a super simple example application meant to be used in tandem with my blog post on theming iOS apps using UITraitCollection. Read it below ⬇️
Install / Use
/learn @dlo/IOSTraitCollectionThemingExampleREADME
iOSTraitCollectionThemingExample
This is a super simple example application meant to be used in tandem with my blog post on theming iOS apps using UITraitCollection (so please read that first if you haven't yet!).
Building
- Clone the repo.
- Open
ThemingExample.xcodeprojin Xcode. - Build and run the app on a device or simulator.
- If everything compiles (which it should!) you should get an app with a single button. Tapping the button changes the theme. It's as simple as that. Here's an recording of it in action:
https://github.com/user-attachments/assets/c5005589-f453-4a99-ab36-1deeeafa94a2
