Advanced Deep Linking In SwiftUI
Michael Long ∙ 12 min read![]() ∙ View on MediumAdvanced Deep Linking In SwiftUITrue deep linking is difficult and most of us don't bother. Here are the techniques I developed for Navigator that make it much, much easier.![]() We've all seen the classic example of using SwiftUI's new @State var showSheet = false var body: some View { VStack { Button("Present Sheet") { if let url = URL(string: "myapp://showSheet") { openURL(url) } } } .onOpenURL { url in if url.host == "showSheet" { showSheet = true } } .sheet(isPresented: $showSheet) { SheetView() } } Define the presentation "show" variable, use NavigationPathWhat could be easier, right? But what if we… Continue reading This is a member-only story and can only be read on Medium. Sent to sikubaycom.s3cr3tz@blogger.com by Michael Long on Medium Unsubscribe from this newsletter or unsubscribe from all newsletters from Medium Manage your email settings Medium, 548 Market St, PMB 42061, San Francisco, CA 94104 Careers·Help Center·Privacy Policy·Terms of service |