didFinishLaunchingWithOptions
method of your AppDelegate file.colors: DKColors
), fonts (fonts: DKFonts
), and/or text localization (overridedStringsFileName: String?
).primaryColor
secondaryColor
mainFontColor
complementaryFontColor
fontColorOnPrimaryColor
fontColorOnSecondaryColor
backgroundViewColor
neutralColor
warningColor
criticalColor
navBarElementColor
fontColorOnPrimaryColor
DKDefaultColors
and override the colors that you want to change (or you can create an object implementing the DKColors
protocol, necessary if your project is in Objective-C for instance). Then pass an instance of this object as a parameter of the configureColors
method.primaryFont
: this is the main font used in the application. The default value is Roboto.secondaryFont
: this is the font used on the page titles or to emphasize a specific point. The default value is Roboto.configureFonts
method as in this following example:DKDefaultFonts
class. To override the fonts, it is thus necessary to create a class implementing the DKFonts
protocol.dk_<module name>_<key description>
.dk_common
.DKAnalytics
protocol:screen
String received in the trackScreen
method is the value associated to one of the keys in this array, corresponding to the visited screen. If you want to customize screen tags, you can provide the path to a plist file (see the default tags file) with your custom values in the configuration method:trackEvent
method allows you to add additional information that may be useful for analysis. For example, that method is called each time the user opens the trip detail screen.