In the app, I am using a RPSystemBroadcastPickerView
to start a system-wide screen recording. I need to react to the user starting screen record or dismissing the shown picker view. In both cases, the system view gets dismissed.
I assumed that dismissing the system picker view will trigger a viewDidAppear
event on the currently shown view controller. This does not happen. I tried to test if the AppDelegate
triggers applicationDidBecomeActive
or applicationWillEnterForeground
- again without success (this are triggered when user open control center).
Does anyone have a suggestion what else to try?
Before iOS 13: hook
RPSystemBroadcastPickerView
containerVC
iOS 14.0 or later: Monitor the focus and out-focus events of the app