title: How to access accessibility settings in MacOSX Cocoa app using swift?
body: <p>I'm pretty confused. Usually in an iOS app I would access the settings using a url scheme. Now I found out that on MacOSX using Objective-C you can do this:</p>
  
  <pre><code>    NSDictionary *options = @{(id)kAXTrustedCheckOptionPrompt: @YES};
      BOOL accessibilityEnabled = AXIsProcessTrustedWithOptions((CFDictionaryRef)options);
  </code></pre>
  
  <p>I've tried to convert this to Swift but didn't got to a valid result.
  Does anyone know how to convert this or a valid method to ask for assistive access in Swift?</p>