Swiftpack.co -  Wootric/WootricSDK-iOS as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Wootric/WootricSDK-iOS
Wootric iOS SDK to show NPS, CSAT and CES surveys
.package(url: "https://github.com/Wootric/WootricSDK-iOS.git", from: "0.21.0")

Wootric

Wootric survey

GitHub license GitHub release Build Status CocoaPods Compatible Carthage compatible Platform Twitter

Requirements

  • iOS 9.0+

Demos

  • View the iOS demo video with referral prompt here.

Installation

Using CocoaPods

The easiest way to get Wootric into your iOS project is to use CocoaPods.

  1. You can install CocoaPods using

    $ gem install cocoapods
    
  2. Create a file in your Xcode project called Podfile and add the following line:

    pod "WootricSDK", "~> 0.21.0"
    
  3. In your Xcode project directory run the following command:

    $ pod install
    
  4. CocoaPods should download and install the Wootric SDK, and create a new Xcode .xcworkspace file. Close your Xcode project and open the new .xcworkspace file.

Manually

If you want to, you can download the SDK and add it to your project without using any dependency manager. Note: Make sure you are using the latest version of Xcode and targeting iOS 9.0 or higher.

  1. Download & unzip the Wootric SDK

  2. In your Xcode project, go to General and drop the WootricSDK.framework on Embedded Binaries

Xcode

Make sure the "Copy items if needed" checkbox is checked.

Initializing Wootric

WootricSDK task is to present a fully functional survey view with just a few lines of code.

  1. Import the SDK's header:

    #import <WootricSDK/WootricSDK.h>
    
  2. Configure the SDK with your account token

    [Wootric configureWithAccountToken:<YOUR_TOKEN>];
    

    You can find the account token in your Wootric's account settings

  3. To display the survey (if user is eligible - this check is built in the method) use:

    [Wootric showSurveyInViewController:<YOUR_VIEW_CONTROLLER>];
    

And that's it! You're good to go and start receiving customer's feedback from your iOS app.

For more information on class methods, please refer to Wootric's docs.

Example

// Import Wootric
@import WootricSDK;

// Inside your view controller's viewDidLoad method

[Wootric configureWithAccountToken:YOUR_ACCOUNT_TOKEN];
[Wootric setEndUserEmail:@"nps@example.com"];
[Wootric setEndUserCreatedAt:@1234567890];
// Use only for testing
[Wootric forceSurvey:YES];
// show survey
[Wootric showSurveyInViewController:self];

License

The WootricSDK is released under the MIT license. See LICENSE for details.

Contribute

If you want to contribute, report a bug or request a feature, please see CONTRIBUTING for details.

GitHub

link
Stars: 12
Last commit: 7 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

Release 0.21.0
7 weeks ago

Changes:

  • Add support for EU tokens

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