Bläddra i källkod

Update README.md

Evgenii Neumerzhitckii 10 år sedan
förälder
incheckning
91b1eb282a
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4 4
      README.md

+ 4 - 4
README.md

@@ -90,7 +90,9 @@ See the list of all available [access options](https://github.com/marketplacer/k
 
 ### Sharing keychain items
 
-In order to share keychain items between apps they need to have common *Keychain Groups* registered in *Capabilities > Keychain Sharing* settings. 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
+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 do it.
+
+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
 
 ### Keychain access groups
 
@@ -100,7 +102,7 @@ In the following example we specify an access group "CS671JRA62.com.myapp.Keycha
 
 ```Swift
 let keychain = KeychainSwift()
-keychain.accessGroup = "CS671JRA62.com.myapp.KeychainGroup" 
+keychain.accessGroup = "CS671JRA62.com.myapp.KeychainGroup" // Use your own access goup
 
 keychain.set("hello world", forKey: "my key")
 keychain.get("my key")
@@ -108,8 +110,6 @@ keychain.delete("my key")
 keychain.clear()
 ```
 
-Note that you will need to enable Keychain sharing in your apps and use your own unique access group. This access group needs to be the same in all your apps that share Keychain items. [This tutorial](http://evgenii.com/blog/sharing-keychain-in-ios/) shows how to do it.
-
 ### 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.