My app navigates to a mobile web page with a WKWebView. What I'm looking for is how to check whether or not the web page is downloadable (e.g. a .csv or .pdf). Right now, I'm doing something hacky to read the URL, but I know there must be a more elegant way.
I'm using WKNavigationDelegate - can anyone provide some insight on how to tell whether a page provides downloadable content or not? Or how I can read a type of "text/csv"?
Please let me know if I can clarify at all.