Custom Theme
APTheme, APSettingTheme, APFeedbackTheme, APAppUpdateConsentTheme, APUserConsentTheme, APThemeSwift, and CrossPromoTheme are the protocols that you can use to customize the Analytics screen, App updates screen, Feedback screen, and CrossPromotion screen.
- Create a swift/Obj class in the ThemeManager and extend the protocols to provide implementations of its requirement.
- You can overwrite the themes by using the set methods in Apptics class.
- Return the default value for the trait in the methods that you implement. You can achieve this by extending UIColor class as given in the below sample. UIColor extension method which returns the color based on the current trait.
- To customize the CrossPromotion screen just assign colors and fonts directly like below, refer APThemeSwiftManager and CrossPrmoTheme classes.