@Environment(\.openURL) private var openURL not working iOS 18

FB13955415

Calls to openURL in iOS 18 beta 22A5282m fails to launch browser.

Is this a bug?

Answered by RyanTCB in 793086022

another post somewhere on the net has said its deprecated. Replaced it with UIApplication.shared.open(myURL) and now works.

Accepted Answer

another post somewhere on the net has said its deprecated. Replaced it with UIApplication.shared.open(myURL) and now works.

@Environment(\.openURL) private var openURL not working iOS 18
 
 
Q