Swiftpack.co - doorbell/ios-sdk as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by doorbell.
doorbell/ios-sdk 0.4.0
The Doorbell iOS SDK
⭐️ 15
🕓 1 week ago
iOS
.package(url: "https://github.com/doorbell/ios-sdk.git", from: "0.4.0")

Doorbell iOS SDK

The Doorbell iOS SDK.

Full documentation

You can view the full documentation here: https://doorbell.io/docs/ios

Installation

Include Doorbell via CocoaPods: https://cocoapods.org/pods/Doorbell

Usage

In the ViewController where you want to use Doorbell, you'll need to import the library using:

#import "Doorbell.Doorbell.h"

Then when you want to show the dialog:

NSString *appId = @"123";
NSString *appKey = @"xxxxxxxxxxxxxxxxxx";

Doorbell *feedback = [Doorbell doorbellWithApiKey:appKey appId:appId];
[feedback showFeedbackDialogInViewController:self completion:^(NSError *error, BOOL isCancelled) {
    if (error) {
        NSLog(@"%@", error.localizedDescription);
    }
}];

To pre-populate the email address (if the user is logged in for example):

NSString *appId = @"123";
NSString *appKey = @"xxxxxxxxxxxxxxxxxx";

Doorbell *feedback = [Doorbell doorbellWithApiKey:appKey appId:appId];
feedback.showEmail = NO;
feedback.email = @"email@example.com";
[feedback showFeedbackDialogInViewController:self completion:^(NSError *error, BOOL isCancelled) {
    if (error) {
        NSLog(@"%@", error.localizedDescription);
    }
}];

GitHub

link
Stars: 15
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Version 0.4.0
24 weeks ago

Re-adding support back to iOS 9

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