Initialization (iOS SDK)

Initialize SDK object and use it anywhere in your application.

Remember to initialize SDK only once on application launch. Don't forget to replace the %YOUR_STORE_KEY% text with the current store key from your PersonaClick account.


import PersonaClick
...
var sdk = createPersonalizationSDK(shopId: "%YOUR_STORE_KEY%")

Or with completion to handle problems:

import PersonaClick
...
var sdk = createPersonalizationSDK(shopId: "%YOUR_STORE_KEY%", { (error) in
    print(error)
})

Copyright 2018-2024 PersonaClick