iGrantioSDK 0.9.1

iGrantioSDK 0.9.1

Maintained by Rebin, Reebin, Mumthasir V P.



 
Depends on:
Alamofire~> 5.4.1
SwiftyJSON>= 0
IQKeyboardManagerSwift>= 0
ExpandableLabel>= 0
MiniLayout~> 1.3.0
StepProgressView>= 0
SDStateTableView>= 0
SwiftEntryKit>= 0
AFDateHelper>= 0
Kingfisher>= 0
 

  • By
  • iGrant.io

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.