This code uses UIApplication.shared.canOpenURL to see if there's an app to handle cydia://, the popular Jailbroken package manager app.
Since iOS 9, apps must include any non-system URL scheme they will test with canOpenURL in the LSApplicationQueriesSchemes ("Queried URL Schemes") field in their Info.plist. Without this, the checking of canOpenURL cydia:// will always return false.

This code uses
UIApplication.shared.canOpenURLto see if there's an app to handlecydia://, the popular Jailbroken package manager app.Since iOS 9, apps must include any non-system URL scheme they will test with
canOpenURLin theLSApplicationQueriesSchemes("Queried URL Schemes") field in their Info.plist. Without this, the checking ofcanOpenURLcydia://will always returnfalse.