I need to detect a moment, when user changes Light/Dark mode and to update borders, icons etc.
Documentation recommends to process traitCollectionDidChange:, for example, inside UIVewController extensions.
This method works fine inside XCode wizards. But how to do this in B4i ? Any ideas ?
I tried an extension for UIView. Works good, but it's necessary to add fictive view to every Page.RootPanel.
I tried to check in Application_Activate also. Works. But IOS changes text, background immediatelly (due to dynamic UIColor). Meanwhile Application_Active happens too late (after 0,5 or 1 second). So there is unpleasant visual effect.
Documentation recommends to process traitCollectionDidChange:, for example, inside UIVewController extensions.
This method works fine inside XCode wizards. But how to do this in B4i ? Any ideas ?
I tried an extension for UIView. Works good, but it's necessary to add fictive view to every Page.RootPanel.
I tried to check in Application_Activate also. Works. But IOS changes text, background immediatelly (due to dynamic UIColor). Meanwhile Application_Active happens too late (after 0,5 or 1 second). So there is unpleasant visual effect.
Last edited: