Lastest version: 0.6.6
SDK instalation
There are a Package provided that can be found clicking here Add thewave-ios-sdk into your project and then follow the initialization step.
Disclamer: SDK only supports Swift Package Manager.
Initialization
First, import the following frameworks to yourAppDelagate file.
didFinishLaunchingWithOptions’s AppDelegate
api_keyprovided by Wave.
Language
The default language is English, to change the language you can use thelanguage parameter and choose one of the supported languages: EN, PT or MX.
Example:
Customizations
Thera are actually two types of customizations,colors and typography.
Colors
To customize colors, it’s necessary add the following code just bellow theWave.shared.setup(environment:oAuth:delegate:) statement
ColorSet struct, initilize both main and base parameters with the desired colors, like the following example:
Typography
To customize the fonts, you need to create a newstruct and conform with the CompositeTypography protocol and then inject the struct into the Wave.shared.theming(typography:) previously instantiated.
Example:
Activation
You can start the activation by adding the following code. First, import theWaveActivation
externalCode to simCardActivation that is used to identify each customer, if you don’t provide an external code, the first screen of the activation flow will ask for the full iccid, otherwise it’ll ask for the last digits of the iccid.
Both helpDelegate and successDelegate delegates are responsibles for handle the Help screen content and the success screen contents.