Installation
This process needs to be followed only once, the first time you need to install the SDK in your project. Please refer to the Update section to see the instructions for subsequent updates.
- Add the following package: https://github.com/KlipFit/kleep-spm
- Change dependency rule to: up to next major version
Permissions
Add the following permission to your project on info.plist: NSCameraUsageDescription
Usage
Method 1: requestSize
This method allows to implement the logic of the CTA.
Logic schema
This schema explains how to update the CTA opening Kleep.
https://www.figma.com/board/BlurZ01lR3JBQZeTUU98TE/Mobile---CTA-Logic?node-id=0-1&t=ccXWciNziIdfhgew-1
Implementation example
Method 2: loadView
This method is called when the CTA is clicked. It allows to load the different screens. The developper integrating the SDK should embed them into a bottom sheet.
Implementation example
Method 3: track
This method allows to track custom events.
product_viewed
Parameters (CSV)
Example
product_added_to_cart
Parameters (CSV)
Example
checkout_completed
Parameters (CSV)
Example
