Dimillian / RedditOS

The product name is Curiosity, a SwiftUI Reddit client for macOS Big Sur
Apache License 2.0
3.95k stars 199 forks source link

Deep link [Question] #10

Closed garsdle closed 4 years ago

garsdle commented 4 years ago

Amazing project!

I'm curious how you would implement deep linking into this? Let's say you open a link to a specific post.

Dimillian commented 4 years ago

Right now the app handle custom redditos:// url for oauth. And SwiftUI support a onOpenIRL modifier that you can plug on any view. So it would just be a matter of catching a redditos://links/:id somewhere in the view and triggering a NavigationLink programatically

garsdle commented 4 years ago

Awesome. Thanks!