Open your model console in the fritz console. It will have a button - SDK Instructions click on this it will open a dialog as shown in the following screenshot. As shown in the dialog box, create a new file with the filename shown and paste/write the code in it:
Now, once you have added this file, you need to open AppDelegate.swift and make the following modifications:
- First, add a new import as
- Import Fritz
- Now in app delegate class:
func application(_application : UIApplication,
didFinishLaunchingWithOptions launchOptions:
[UIApplication.LauncgOptionsKey: Any])
Replace the previously method definition as shown here:
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?)
-> Bool {
FritzCore.configure()
return true
}