DyScan
Search…
Migrating from 1.0.x to 1.1.x (iOS)
In version 1.1.1 we change the way of initializing DyScan and setting up the API key.

Removing API key setter

Depending on the way which you chose to use DyScan, you will need to remove following lines.
View Controller as an Option
View Controller as the Default
View
1
let viewController = DyScanViewController()
2
3
//...
4
5
// Remove the line below
6
// viewController.apiKey = "{YOUR API KEY}"
Copied!
1
let viewController = DyScanDefaultViewController()
2
3
//...
4
5
// Remove the line below
6
// viewController.apiKey = "{YOUR API KEY}"
Copied!
1
dyScanView = DyScanView(frame: CGRect(x: 0, y: 0, width: self.view.frame.width, height: self.view.frame.height))
2
3
//...
4
5
// Remove the line below
6
// dyScanView?.apiKey = "{YOUR API KEY}"
Copied!

Initializing DyScan

In your AppDelegate add the following line to configure DyScan.
1
class AppDelegate: UIResponder, UIApplicationDelegate {
2
3
//...
4
5
internal func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
6
//...
7
DyScan.configure(apiKey: "{YOUR API KEY}")
8
//...
9
return true
10
}
11
}
Copied!
Last modified 1yr ago