Dimillian / RedditOS

The product name is Curiosity, a SwiftUI Reddit client for macOS Big Sur

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deep link [Question]

garsdle opened this issue · comments

Amazing project!

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

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

Awesome. Thanks!