Did you try with https ?
That should matter in this case. When you open a URL using UIApplication, the URL opens in the target app (in this case Safari) and thus your ATS settings don’t matter.
@sarahbrooke25, I put your code into a test app here in my office and it works just fine, both on the simulator and on a real device. I’ve not idea what’s going on with your app. I recommend you try reproducing this in a simple test app:
Create a new app from the Single View Application template
Add your method to
Add a button to
Main.storyboardand wire it up to your method
Run on the simulator
Does that change the behaviour?
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"