In my iOS app I have a WKWebView
that loads my website.
In my website there is a HTML form that allows users to upload images.
I want to receive when user click on this form attach button so I can request permission for Camera and Photo Library. If user rejects the access I want to dismiss the click.
If user did not select an image from photo library and clicked cancel. The WKWebView reloads my page. I do not want it to reload my page.
@IBOutlet weak var webView: WKWebView!
webView.navigationDelegate = self
webView.uiDelegate = self
Which delegate
functions are suitable to my case.