How do I prevent a WKWebView from presenting the Camera modal if a user has denied access to the camera?
问题 In my app, I have a WKWebView loading a website with file input that allows a user to upload images via the Camera or the Photo Library. My app has both privacy usage descriptions for the Camera and Photo Library. If a user has denied access to the Camera, the WKWebView will still show the option to upload images via the Camera, and the Camera modal presents (though it only shows black where you'd normally see an image of what the camera is showing). If a user swipes to the Video option in