I am new to Swift and WKWebView.
I have a WKWebView implemented in my App. I want to show a website in it which uses the location like https://www.google.com/maps.
I added NSLocationWhenInUseUsageDescription in Info.plist.
When I first open the app there is a prompt which asks for the location.
When I click Allow the app crashes with the Thread 1: signal SIGABRT error.
I checked all my outlets and there is definitely no mistake.
Also the error displays:
UIAlertView is deprecated and unavailable for UIScene based applications, please use UIAlertController!
But I'm not explicitly call a UIAlertView so I don't know how to fix this.