JamesSedlacek / Routing

SwiftUI library for abstracting navigation logic from views

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open URL, Web or Safari link

JamesSedlacek opened this issue · comments

Add the ability to write router functions like this:

// Safari support. Should open URL in Safari application.
router.open(.safari, urlString: "https://github.com/JamesSedlacek/Routing")
// In App Web Browser support. Should open URL in an in-app browser 
// (probably need to add a SFSafariViewControllerRepresentable). 
// Need to be able to dismiss this.
router.open(.inAppBrowser, urlString: "https://github.com/JamesSedlacek/Routing")
// URL Schema Support. Should open the URL directly via UIApplication.shared.open(url) or similar.
router.open(.urlSchema, urlString: "https://github.com/JamesSedlacek/Routing")