Skip to content

Skip SFSafariViewController to open links with Catalyst #1145

@vtourraine

Description

@vtourraine

Hello there,

I love using the app on my Mac, but one thing that I find bothersome is how links open in the browser. I know Catalyst supports SFSafariViewController, but it first shows an extra dialog that doesn’t serve any purpose.

Image

I believe it would be more convient to open the URL on UIApplication directly, like this:

#if targetEnvironment(macCatalyst)
        UIApplication.shared.open(url)
#else
        let viewController = SFSafariViewController(url: url)
        present(viewController, animated: true, completion: nil)
#endif

I’m happy to open a pull request if you agree with this change.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions