Browse Source

Update README.md

Evgenii Neumerzhitckii 10 years ago
parent
commit
9efbb3759e
1 changed files with 3 additions and 5 deletions
  1. 3 5
      README.md

+ 3 - 5
README.md

@@ -92,11 +92,7 @@ See the list of all available [access options](https://github.com/marketplacer/k
 
 In order to share keychain items between apps they need to have common *Keychain Groups* registered in *Capabilities > Keychain Sharing* settings. [This tutorial](http://evgenii.com/blog/sharing-keychain-in-ios/) shows how to set it up.
 
-There is no way of sharing a keychain item between the watchOS 2.0 and its paired device: https://forums.developer.apple.com/thread/5938
-
-#### Specifying Keychain access group
-
-Use `accessGroup` property to specify an access group that will be used to access keychain items that are shared between apps. In the following example we specify an access group "CS671JRA62.com.myapp.KeychainGroup" that will be used to set, get and delete an item "my key". If there are "my key" items in different access groups they will not be affected unless `accessGroup` property is set to nil.
+Use `accessGroup` property to access shared keychain items. In the following example we specify an access group "CS671JRA62.com.myapp.KeychainGroup" that will be used to set, get and delete an item "my key". If there are "my key" items in different access groups they will not be affected unless `accessGroup` property is set to nil.
 
 ```Swift
 let keychain = KeychainSwift()
@@ -108,6 +104,8 @@ keychain.delete("my key")
 keychain.clear()
 ```
 
+*Note*: there is no way of sharing a keychain item between the watchOS 2.0 and its paired device: https://forums.developer.apple.com/thread/5938
+
 ### Setting key prefix
 
 One can pass a `keyPrefix` argument when initializing a `KeychainSwift` object. The string passed in `keyPrefix` argument will be used as a prefix to **all the keys** used in `set`, `get`, `getData` and `delete` methods. I use the prefixed keychain in tests. This prevents the tests from changing the Keychain keys that are used when the app is launched manually.