Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.51 KB

README.md

File metadata and controls

55 lines (36 loc) · 1.51 KB

iGrantioSDK

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Environment iOS 10.0+, macOS 10.10+,

Swift 4.2 and Xcode 10.

Installation

iGrantioSDK is available through CocoaPods. To install it, add the following line to your Podfile:

pod 'iGrantioSDK'

Usage

You can easily present the iGrantViewController by single line code shown below:

#import iGrantioSDK

iGrantioSDK.shared.modalPresentationStyle = .fullScreen
iGrantioSDK.shared.show(organisationId: <ORGANISATION ID>, apiKey: <API KEY>, userId: <USERID>)

Get iGrant user id

If you need to login anonymously, You can use the below function to create new iGrant user id.

iGrantioSDK.shared.createIGrantUser(orgId: <ORGANISATION ID>,apiKey: <APIKEY>) {(success, userId) in
 print("UserID \(userId)")
}

Author

iGrant.io

License

iGrantioSDK is available under the custom license. See the LICENSE file for more info.