Unleash the UIKit trait system

RSS for tag

Discuss the WWDC23 Session Unleash the UIKit trait system

Posts under wwdc2023-10057 tag

1 result found
Sort by:

Post

Replies

Boosts

Views

Activity

Handling trait changes (for dark mode)
In an objective C app I'm now using (in every view controller): (void) traitCollectionDidChange: (UITraitCollection *) previousTraitCollection { ..... } to handle dark mode changes. This is all very easy to implement. traitCollectionDidChange is deprecated in iOS 17. In the documentation there is no objective C example on how to work with the new iOS17 registerForTraitChanges function. Hard to figure out how to do this. Am not familiar with Swift, so the wwdc video could not help me. Where can I find some objective C examples? Best regards/Rolf Netherlands
3
0
979
Jul ’23