Integrate Gamification Mobile iOS SDK into Loyalty Management Mobile iOS SDK
Import the Gamification Mobile iOS SDK into the existing Loyalty Management Mobile iOS SDK by adding it as an external dependency.
| Required Editions |
|---|
| Available in: all editions that have Loyalty Management enabled |
-
Open the
LoyaltyMobileSDK-iOSproject in Xcode. -
Go to File | Swift Packages | Add Package Dependency.
-
Enter the repository URL:
https://github.com/loyaltysampleapp/GamificationMobileSDK-iOS, or if you’ve cloned the repository, click Add Local, and then select the localGamificationMobileSDK-iOSfolder. -
Select a version, and click Add Package and on the confirmation window, click Add Package.
-
To import the
GamificationMobileSDK-iOSmodule into your Swift file, open the swift file where you want to useGamificationMobileSDK-iOS, and to the first line of code, add:import GamificationMobileSDK-iOS
You can now use the classes, structures, and protocols in the GamificationMobileSDK-iOS module to extend and manage the gamification features in the MyNTORewards sample app.