I have a WKWebview loading a web based UI where I would like users to be able to upload a file from their iCloud documents. I have granted the correct permissions and I am able to browse the iCloud documents. However when I either select a file or click the cancel button, as well as the document picker view dismissing the parent view of my WKWebview is also dismissed.
I have tried to track the dismiss path. I am 100% sure I am not calling the dismiss function on my view.
Does anyone have any idea what is triggering the dismiss on my WKWebview container and how to prevent it?