Yes, it makes sense now, so you are letting us know the API: guard let url = URL(string: https://www.apple.com) else { return } if UIApplication.shared.canOpenURL(url) { UIApplication.shared.open(url) } else { print(Could not open URL) } Is not working? I can help you with that as there is no bugs on that api at all. I just put the simple app to open and opens safari, but if there is no browser nothing will open? import SwiftUI struct ContentView: View { var body: some View { VStack { Image(systemName: globe) .imageScale(.large) .foregroundStyle(.tint) Text(Hello, world!) }.task { guard let url = URL(string: https://www.apple.com) else { return } if UIApplication.shared.canOpenURL(url) { UIApplication.shared.open(url) } else { print(Could not open URL) } } .padding() } } #Preview { ContentView() } However the API requires an app capable of handling this request as explained here: (Launching the app brings the other app to the foreground.) If no app is capable of handling the specified scheme, the com
Topic:
UI Frameworks
SubTopic:
UIKit