Hi, thanks for the response.
If I am not mistaken, traitCollectionDidChange(_:)
will trigger when the system level user interface style is updated. Since we are trying to have our own dark mode setting within our app, thus we will have to use overrideUserInterfaceStyle
and cannot rely on traitCollectionDidChange(_:)
.
Regarding setting overrideUserInterfaceStyle
on a UIWindow
level, that is definitely one of the way, however I will prefer to do it in a view controller level so that I can have more control and flexibility on which view controller should / should not observe to the in-app dark mode setting changes. 🙂