SkillAgentSearch skills...

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/IOSTraitCollectionThemingExample

README

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

  1. Clone the repo.
  2. Open ThemingExample.xcodeproj in Xcode.
  3. Build and run the app on a device or simulator.
  4. 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

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated1y ago
Forks0

Languages

Swift

Security Score

60/100

Audited on Feb 11, 2025

No findings