title: Programmatically check whether an app is installed
body: <p>I would like to know whether there is a Swift equivalent of the following Objective-C code</p>
  
  <pre><code>NSURL *appURL = [NSURL URLWithString: @"myapp://"];
  if ([app canOpenURL: appURL] {
   NSLog(@"The app is this URL Scheme is installed on the device");
  }
  </code></pre>