Skip to content

Commit

Permalink
Update Readme to 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsz committed Mar 20, 2019
1 parent d97a3f6 commit 5870a6c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions 2.0/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# KYC-iOS-Release 1.1
# KYC-iOS-Release 2.0

### Installation
This framework ment to be installed via [cocoapods](https://cocoapods.org/).
Expand Down Expand Up @@ -29,16 +29,20 @@ SSEngine *engine = [SSFacade setupForApplicant:applicantID
withToken:authToken
locale:locale
supportEmail:supportEmail
baseUrl:baseUrl];
baseUrl:baseUrl
colorConfig:colorConfigOrNil
imageConfig:imageConfigOrNil];
```
Where
* `applicantID` - your applicant identifier
* `authToken` - your Sum&Sub auth token
* `locale` - user language (preferably, NSLocale.currentLocale.localeIdentifier, but you can use any)
* `colorConfigOrNil` - nil or subclass of `KYCColorConfig` (for color pallet customization)
* `imageConfigOrNil` - nil or subclass of `KYCImageConfig` (for icons customization)
Then, you should:
* Connect to remote - `[engine connectWithExpirationHandler:verificationResultHandler:]; `
* Create KYC UI - `[SSFacade getChatControllerWithAttributedTitle:titleOrNil]`
* Refrest auth token (when needed) - `engine.refreshToken = newToken;`
* Refresh auth token (when needed) - `engine.refreshToken = newToken;`
For more usage examples refer to [demo project](https://github.com/SumSubstance/KYC-iOS-Demo).

0 comments on commit 5870a6c

Please sign in to comment.