I am trying to open a specific view controller by tapping a button on my today extension. But it only takes me to my initial view controller but I need to go to my second view controller. Here is my code when the button taps
@IBAction func myButton(_ sender: Any)
{
self.extensionContext?.open(URL(string: "car://")!, completionHandler: nil)
}
Here is what I also have in AppDelegate
func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool
{
if url.scheme == "car://"
{
}
return true
}
I also have my URL types set to "car"
Any help will be greatly appreciated!