To run the example project, clone the repo, and run pod install
from the Example directory first.
Environment iOS 10.0+, macOS 10.10+,
Swift 4.2 and Xcode 10.
iGrantioSDK is available through CocoaPods. To install it, add the following line to your Podfile:
pod 'iGrantioSDK'
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>)
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)")
}
iGrant.io
iGrantioSDK is available under the custom license. See the LICENSE file for more info.