Skip to content

This is the mobile SDK to add iGrant.io mobile app organisation panels for iOS.

License

Notifications You must be signed in to change notification settings

L3-iGrant/mobileSDK-iOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

This is the mobile SDK to add iGrant.io mobile app organisation panels for iOS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •