Import SDK into iOS Swift Projects
After you clone the mobile SDK for iOS repository, import Loyalty Management Mobile SDK
in Xcode to automatically download and manage external dependencies.
| Available in: all editions that have Loyalty Management enabled |
- Open your existing app project in Xcode or create an app project.
- With your app project open in Xcode, select .
- Enter the repository URL: https://github.com/salesforce-misc/LoyaltyMobileSDK-iOS
- Select a version, and click Add Package and on the confirmation window, click Add Package.
- To import the LoyaltyMobileSDK module into your Swift file, open the swift file where you want to save LoyaltyMobileSDK, and to the first line of code, add import LoyaltyMobileSDK.
- Press Enter or return.
You can now use the classes and structures in the LoyaltyMobileSDK module and API
references to manage the features in your application.