CocoaPods Carthage compatible

DriftSDK is the official Drift SDK written in Swift enabling you to both send announcements and collect vital NPS responses all within the app!


  • Send NPS to your customers
  • Send Product announcements to your customers

Getting Setup


DriftSDK can be added to your project using CocoaPods by adding the following line to your Podfile:

pod 'Drift', '~> 0.0.1'

For Carthage you can add a dependency on DriftSDK by adding it to your Cartfile:

github "Driftt/drift-sdk-ios" ~> 0.0.1


To get started with the Drift iOS SDK you need an embed ID from your Drift settings page. This can be accessed here

In your AppDelegate didFinishLaunchingWithOptions call:


or in ObjC

  [Drift setup:@""];

Once your user has successfully logged into the app registering a user with the device is done by calling register user with a unique identifier, typically the id from your database, and their email address:

  Drift.registerUser("", email: "")

or in ObjC

  [Drift registerUser:@"" email:@""];

When your user logs out simply call logout so they stop receiving campaigns.


or in ObjC

  [Drift logout];

Thats it. Your good to go!!


Contributions are very welcome 🤘.