You need to add Broadcast Upload Extension to your application.
(In Xcode, File> New Target, select "Broadcast Download Extension")
As soon as the extension is installed (next to your application), touching the recording icon on the screen in the control center will enable you to use the broadcast extension instead of the standard one ("Camera Roll").
There is currently very little documentation on iOS Screen Recording. But this WWDC video talks about it at a high level:
https://developer.apple.com/videos/play/wwdc2017/606/
source share