Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MYID Public Code
MyID iOS SDK
Commits
37f88cdf
Commit
37f88cdf
authored
Jul 09, 2025
by
Javohir Savriy
Browse files
Update README.md
parent
81592d3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
37f88cdf
...
@@ -40,7 +40,7 @@ dependencies: [
...
@@ -40,7 +40,7 @@ dependencies: [
The SDK is available on Cocoapods and you can include it in your projects by adding the following to your Podfile:
The SDK is available on Cocoapods and you can include it in your projects by adding the following to your Podfile:
```
ruby
```
ruby
pod
'MyIdSDK'
,
'~> 2.4.
6
'
pod
'MyIdSDK'
,
'~> 2.4.
7
'
```
```
Run
`pod install`
to get the SDK.
Run
`pod install`
to get the SDK.
...
@@ -85,13 +85,10 @@ class ViewController : UIViewController {
...
@@ -85,13 +85,10 @@ class ViewController : UIViewController {
extension
ViewController
:
MyIdClientDelegate
{
extension
ViewController
:
MyIdClientDelegate
{
func
onSuccess
(
result
:
MyIdResult
)
{
func
onSuccess
(
result
:
MyIdResult
)
{
if
let
code
=
result
.
code
{
// Get face bitmap and result code
print
(
code
)
}
if
let
comparison
=
result
.
comparisonValue
{
print
(
result
.
code
)
print
(
comparison
)
print
(
result
.
comparisonValue
)
}
if
let
image
=
result
.
image
{
if
let
image
=
result
.
image
{
print
(
img
)
print
(
img
)
...
@@ -99,12 +96,14 @@ extension ViewController: MyIdClientDelegate {
...
@@ -99,12 +96,14 @@ extension ViewController: MyIdClientDelegate {
}
}
func
onError
(
exception
:
MyIdException
)
{
func
onError
(
exception
:
MyIdException
)
{
// Get error message and code
print
(
exception
.
code
)
print
(
exception
.
code
)
print
(
exception
.
message
)
print
(
exception
.
message
)
}
}
func
onUserExited
()
{
func
onUserExited
()
{
print
(
"User exited"
)
// User left the SDK
}
}
}
}
```
```
...
@@ -162,13 +161,8 @@ extension ViewController: MyIdClientDelegate {
...
@@ -162,13 +161,8 @@ extension ViewController: MyIdClientDelegate {
func
onSuccess
(
result
:
MyIdResult
)
{
func
onSuccess
(
result
:
MyIdResult
)
{
// Get face bitmap and result code
// Get face bitmap and result code
if
let
code
=
result
.
code
{
print
(
result
.
code
)
print
(
code
)
print
(
result
.
comparisonValue
)
}
if
let
comparison
=
result
.
comparisonValue
{
print
(
comparison
)
}
if
let
image
=
result
.
image
{
if
let
image
=
result
.
image
{
print
(
img
)
print
(
img
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment