1

I am working on SwiftUI app in which trying to perform deep linking. when I manually open the browser and put "myapp://" its navigating to app correctly. But in actual I am opening safari within app and after deep link success I want to call below appdelegate method

I am using sfsafariviewcontroller

func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
            print("myapp")
        return true
    }

below is my work

enter image description here

Thank You for help

Rahul
  • 537
  • 1
  • 7
  • 19

1 Answers1

-1

From the documentation this method seems to be the one you can directly use with SFSafariViewController

func safariViewController(_ controller: SFSafariViewController, 
            didCompleteInitialLoad didLoadSuccessfully: Bool)

Documentation

Asad
  • 279
  • 1
  • 7