How to handle rejection by users when recording starts with the ReplayKit

When using the ReplayKit to start recording, an alert screen appears when recording starts asking the user if they are allowed to record.

Is there any way to know if the user has allowed or denied the recording at this time?

I would like to change the UI depending on whether the user has allowed or denied the recording here, but I cannot find a good way to do this.

If the user rejects it, no exception is issued, and at this point, is_recording returns false since it is before recording no matter which option I choose.

If anyone knows a better way, please let me know.

The process of asking for permission is asynchronous in nature, so with the current API the only good way is to observe isRecording.