Skip to main content

Launch SDK

To launch the Metric SDK and initiate user verification, we would first need to generate a token. Information on token generation can be found here Generate Tokens.

After the token has been generated, you can launch the SDK like below: eg.

...
import MetricSDK
...
class ViewController: UIViewController {
...
@objc private func launchSDKPressed(){
let launcher = LaunchMetricSDK(token: "<token here>")
launcher.modalPresentationStyle = .overCurrentContext
launcher.modalTransitionStyle = .crossDissolve
present(launcher, animated: true, completion:nil)
}
...
}