Evgenii Neumerzhitckii 9 vuotta sitten
vanhempi
commit
5048530630

+ 0 - 9
Demo/ViewController.swift

@@ -14,16 +14,7 @@ class ViewController: UIViewController {
   let keychain = KeychainSwift()
   
   override func viewDidLoad() {
-    @IBOutlet weak var textField: NSTextField!
-    @IBOutlet weak var textField: NSTextField!
-    @IBOutlet weak var textField: NSTextField!
-    @IBOutlet weak var synchronizableButton: NSButton!
     super.viewDidLoad()
-    @IBOutlet weak var errorLabel: NSTextField!
-    @IBOutlet weak var errorLabel: NSTextField!
-    @IBOutlet weak var errorLabel: NSTextField!
-    @IBOutlet weak var synchronizableButton: NSButton!
-    @IBOutlet weak var sybchronizableButton: NSButton!
     
     updateValueLabel()
   }

+ 2 - 0
Distrib/KeychainSwiftDistrib.swift

@@ -43,6 +43,8 @@ public class KeychainSwift {
   Specifies whether the items can be synchronized with other devices through iCloud. Setting this property to true will
    add the item to other devices with the `set` method and obtain synchronizable items with the `get` command. Deleting synchronizable items will remove them from all devices. In order for keychain synchronization to work the user must enable "Keychain" in iCloud settings.
    
+  Does not work on macOS.
+   
   */
   public var synchronizable: Bool = false
   

+ 2 - 0
KeychainSwift/KeychainSwift.swift

@@ -28,6 +28,8 @@ public class KeychainSwift {
   Specifies whether the items can be synchronized with other devices through iCloud. Setting this property to true will
    add the item to other devices with the `set` method and obtain synchronizable items with the `get` command. Deleting synchronizable items will remove them from all devices. In order for keychain synchronization to work the user must enable "Keychain" in iCloud settings.
    
+  Does not work on macOS.
+   
   */
   public var synchronizable: Bool = false
   

+ 3 - 0
README.md

@@ -126,6 +126,7 @@ Setting `synchronizable` property to `true` will add the item to other devices w
 
 Note that you do NOT need to enable iCloud or Keychain Sharing capabilities in your app's target for this feature to work.
 
+
 ```Swift
 // First device
 let keychain = KeychainSwift()
@@ -138,6 +139,8 @@ keychain.synchronizable = true
 keychain.get("my key") // Returns "hello world"
 ```
 
+We could not get the Keychain synchronization work on macOS.
+
 
 <h3 id="keychain_access_groups">Sharing keychain items with other apps</h3>