Skip to content

Instantly share code, notes, and snippets.

@benbahrenburg
Last active December 30, 2016 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benbahrenburg/27248ed5778399fefdd9f9b37dd388c4 to your computer and use it in GitHub Desktop.
Save benbahrenburg/27248ed5778399fefdd9f9b37dd388c4 to your computer and use it in GitHub Desktop.
let info = KeyChainAccessGroupHelper.getAccessGroupInfo()
//Use the default Keychain group
let keychain = Keychain(service: "com.example.github-token", accessGroup: info.rawValue)
//Use the prefix to connect to another keychain group
let keychain = Keychain(service: "com.example.github-token", accessGroup: String(format: "%@.com.bencoding.awesome-group", info.prefix))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment