Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

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

  1. Open your existing app project in Xcode or create an app project.
  2. With your app project open in Xcode, select File | Swift Packages | Add Package Dependency.
  3. Enter the repository URL: https://github.com/salesforce-misc/LoyaltyMobileSDK-iOS
  4. Select a version, and click Add Package and on the confirmation window, click Add Package.
  5. 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.
  6. 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.