This repository contains a demo project for integrating and demonstrating the functionality of the TrustedForm SDK on iOS. The TrustedForm SDK allows iOS developers to easily integrate TrustedForm's capabilities into their applications.
Before you begin, ensure you have the following installed:
- Xcode (latest version recommended)
- Swift Package Manager (comes with Xcode)
- An active iOS Developer account for running the demo on a physical device (optional)
Follow these steps to set up and run the TrustedForm iOS demo project:
Start by cloning the repository to your local machine. You can do this by opening a terminal and running the following command:
git clone https://github.com/activeprospect/trustedform-ios-demo.git
Navigate to the cloned repository directory and update the development.xcconfig
file with your correct information. If you do not have personal credentials yet or wish to test the integration first, you can use our provided demo token.
// Inside development.xcconfig
DEMO_TOKEN = your_demo_token_here
Open your project in Xcode and use the Swift Package Manager to target the correct version of the TrustedForm SDK. As of this writing, the current version is 0.3.1
. To do this:
- Go to
File
>Swift Packages
>Add Package Dependency...
- Enter the TrustedForm SDK repository URL (https://github.com/activeprospect/trustedform-ios-sdk)
- Choose version
0.3.2
and add the package to your project
Finally, build and run the project in Xcode to see the TrustedForm iOS demo in action. You can run the project on a simulator or a physical device (if you have set up a developer account and a device for development).
For issues, questions, please open an issue or pull request in this repository. For more detailed documentation on the TrustedForm SDK, visit TrustedForm SDK Documentation.