How does one handle custom URL schemes to allow one app to be directed to another? e.g. instagram://user?username=someusername
which directs a user straight to the users profile via username. I need to create something similar.
I've checked out application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool
and application(_ application: UIApplication, handleOpen url: URL) -> Bool
but they seem to have a red line through when attempting to implement so I assume they are deprecated. Also, they don't seem to get called when I open my app via url from a browser.