Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The tagged wrapper is an iOS UIView with a requirement to have accessibilityLabel specified, either from the XCode UI builder or programmatically. This are is used to find the views in the Single tag where you want us to add the monetization inventory. You need to add as many as you can, remember that placing a tagged wrapper does not mean we need to use it.

...

In this case, the UIViewController looks like this

Code Block
languageswift
import UIKit
import R89SDK
class MyViewControllerMainViewController: UIViewController {
    ...
    override func viewDidLoad() {
        super.viewDidLoad()
        ...
        // This Doline notis forgetnecessary to register inform R89SDK about app navigation.
        R89SDK.shared.registerLifecycleregisterUIViewController(uiViewController: self)
    }
    ...
}

Programmatically (alternative)

As an alternative approach, we can specify the accessibilityLabel using code, here is the equivalent setup but from the UIViewController.

Code Block
languageswift
import UIKit
import R89SDK

class MyViewControllerMainViewController: UIViewController {
    
    @IBOutlet var topWrapperUIView:UIView!
    @IBOutlet var bottomWrapperUIView:UIView!
    ...
    override func viewDidLoad() {
        super.viewDidLoad()
        ...
        //Tag configurations Setting tags programmatically 
        topWrapperUIView.accessibilityLabel = "top_wrapper_tag"
        bottomWrapperUIView.accessibilityLabel = "bottom_wrapper_tag"
        //Registration of UIViewController This line is necessary to inform R89SDK about app navigation.
        R89SDK.shared.registerLifecycle(uiViewController: self)
    }
    ...
}

Where To Add The Wrappers?

...