RPScreenRecorder only records app main window

Originator:jan.sachse
Number:rdar://33157639 Date Originated:July 6 2017,
Status:Closed Resolved:
Product:ReplayKit Product Version:
Classification: Reproducible:
 
RPScreenRecorder only allows recording the apps main window and does not capture any custom windows with a higher windowLevel

Steps to Reproduce:
Open the attached Xcode project, build and launch it on a device running iOS 11.
Tap the "Start Capturing" Button and confirm the dialog with "Record Screen".
Notice the little preview of the captured image in the bottom right corner.
It does not contain the yellow square, which is a second window.

Expected Results:
The recorded video would contain all windows of the app.

Observed Results:
The recorded video only contains images from the main window of the app (which isn't even the keyWindow in this case)

Version:
iOS 11 (15A5304j)

--------------------------
Apple Developer Relations

This issue behaves as intended based on the following:  
Replaykit will only ever capture the applications main window. 
If you wish for ui elements to be captured, then you would need to render them in the main window  We are now closing this bug report.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!