Hi,
I am using RPSystemBroadcastPickerView to enable the user start broadcast in simpler way.
I've created new iOS "Single View App" project, added the code to ViewController class:
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let screenSharingProviderPickerView: RPSystemBroadcastPickerView = RPSystemBroadcastPickerView(frame: view.frame)
view.addSubview(screenSharingProviderPickerView)//append(screenSharingProviderPickerView)//insertSubview(screenSharingProviderPickerView, at: 0)
screenSharingProviderPickerView.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([screenSharingProviderPickerView.centerXAnchor.constraint(equalTo: view.centerXAnchor, constant: 0),
screenSharingProviderPickerView.centerYAnchor.constraint(equalTo: view.centerYAnchor, constant: 0),
screenSharingProviderPickerView.widthAnchor.constraint(equalToConstant: 100),
screenSharingProviderPickerView.heightAnchor.constraint(equalToConstant: 100)])
}
Build and run project on a device, tap to white-black circle in the middle of the screen, BroadcastPickerView appears, but at the same time I've got error message to the console:
Unbalanced calls to begin/end appearance transitions for <UIApplicationRotationFollowingController: 0x109301750>.
In new empty project it is working for the end user, BroadcastPickerView is always presented on the screen without any defects.
But when i try to use the same code in larger project, UI begins not responsive for 6-7 seconds (UI elements doesnt recieve any touch events) after i tap to RPSystemBroadcastPickerView.
Are there any workarounds for this "Unbalanced call" error?
Thank you in advance.