Swiftpack.co - Swrve/swrve-ios-sdk as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Swrve.
Swrve/swrve-ios-sdk v4.1.1
Swrve iOS SDK
⭐️ 16
🕓 1 year ago
iOS tvOS
.package(url: "https://github.com/Swrve/swrve-ios-sdk.git", from: "v4.1.1")


What is Swrve

Swrve is a single integrated platform delivering everything you need to drive mobile engagement and create valuable consumer relationships on mobile.
This native iOS SDK will enable your app to use all of these features.

Getting started

Have a look at the quick integration guide at http://docs.swrve.com/developer-documentation/integration/ios/

Installing using CocoaPods

Add the following line to your Podfile

pod ‘SwrveSDK’

Installing using Carthage (iOS 8+)

You can use Carthage to install Swrve by adding it to your Cartfile Note SwrveSDK version > 8.0 depends on SDWebImage. SDWebImage.xcframework is included in the root of our SwrveFramework project. Use this or add SDWebImage to your cartflie as shown below.

github "Swrve/swrve-ios-sdk"
github "SDWebImage" "~> 5.0"

Installing using Swift Package Manager (Xcode 12+)

For installing Swift packages, please see the [Apple Developer Docs](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app Requirements)


Xcode (latest)

The SDK supports iOS 10+ and the latest version of Xcode (Xcode 10.1, as the time of writing). The SDK will handle older versions of the OS with a dummy SDK.

Sample Projects

  • The samples folder contains several sample projects that include integration instructions and demonstrate best practices.
  • Replace the -1 and <API_key> arguments found in the project's AppDelegate file with the AppID with the API Key provided by Swrve.
  • Run on your device or on the emulator.


We would love to see your contributions! Follow these steps:

  1. Fork this repository.
  2. Create a branch (git checkout -b my_awesome_feature)
  3. Commit your changes (git commit -m "Awesome feature")
  4. Push to the branch (git push origin my_awesome_feature)
  5. Open a Pull Request.


© Copyright Swrve Mobile Inc or its licensors. Distributed under the Apache 2.0 License.


Stars: 16
Last commit: 3 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.


Release Notes

3 weeks ago


  • To improve campaign holdout reporting on in-app message and embedded campaigns, the SDK now sends an impression event.
  • Added a new action to in-app message campaigns that automatically directs a user to the app’s notification settings page when they click a button. This is a useful option for getting the user to grant permission if they previously denied the permission prompt.
  • Added a new action to in-app message campaigns that automatically launches the Swrve Geo SDK, prompting the user to grant location permission.
  • Added NUMERIC conditions support to in-app message triggering logic.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics