To run the example project, clone the repo, and run pod install from the Example directory first.
- iOS 12 or higher
Cocoapods
TrustlySDK is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'TrustlySDK'For development and test reasons, you can install the pod from a branch in github:
pod 'TrustlySDK', :git => 'https://github.com/TrustlyInc/trustly-ios.git', :branch => '<BRANCH_NAME>'Swift Package Manager - SPM
TrustlySDK is available through [Swift Package Manager](https://cocoapods.org). To install it, simply click on File -> Add packages -> Search or Enter Package URL, paste the github url about this package `https://github.com/TrustlyInc/trustly-ios.git`:
For production reason choose the main branch, but for test or validation choose the branch described in the release version table.
If you are upgrading from a previous version, see the Migration Guide for version-specific instructions.
Note
What's New in v4.0.0:
- New Architecture: A completely redesigned foundation for improved stability and future scalability.
- Enhanced Asynchronous Call Management: Better handling of the SDK's internal > asynchronous operations, leading to smoother performance.
- More Flexible Architectural Design: Provides developers with greater adaptability for diverse integration needs.
- Improvements for In-App Browser Support: Streamlined performance and reliability when using the SDK within an in-app browser environment.
Important
Key Changes from v3 to v4:
- View Components Refactored: TrustlyView has been replaced with a more modular approach, now utilizing ViewControllers, WidgetViewController, and LightBoxViewController.
- Callback Handling Updated: Methods previously relying on completionHandler have been superseded by the new TrustlySDKProtocol for more consistent and robust callback management.
Upgrading from v3? See the v3 → v4 Migration Guide for a step-by-step upgrade plan.
To quickly get up and running with this SDK see the iOS Quickstart in the Trustly Developer Documentation.
| VERSION | DESCRIPTION | BRANCH |
|---|---|---|
| 4.3.0 | Add last used bank. | main |
| 4.2.0 | Add universal link support | main |
| 4.1.0 | Change inAppBrowser integration | main |
| 4.0.0 | Change the SDK design to work with controllers | main |
| 3.3.2 | Fix bug to provide some data to analytics | main |
| 3.3.1 | Fix bug when try to send metadata properties | main |
| 3.3.0 | Implement the functionality of being able to choose webview or in-app browser in the SDK | main |
| 3.2.3 | Fix a bug when we try to send an establish data with an array value | main |
| 3.2.2 | Fix a bug when we try to check if the sdk is loading a error page(400 and 500) | main |
| 3.2.1 | Prepare the sdk to support Buck build system | main |
| 3.2.0 | Add PrivacyInfo.xcprivacy | main |
| 3.1.1 | Fix minor bug when use the SDK in local environment | main |
| 3.1.0 | Add SessionCid to to distinct widget impressions and transactions | main |
| 3.0.0 | Add cocoapods, and swift package manager support | main |
TrustlySDK is available under the MIT license. See the LICENSE file for more info.
