This is the code I use:
let instagramURL = NSURL(string: \"instagram://app\") if UIApplication.shared.canOpenURL(instagramURL! as URL) { //Code } else {
Right click on your plist file and open it as source code. Then copy and paste below code:
LSApplicationQueriesSchemes instagram
Note: One thing you have to keep in mind that it will not work on simulator. You need a real device for this.