Explorar o código

Preventing the user from using clear on macOS

Yannick Weiss %!s(int64=6) %!d(string=hai) anos
pai
achega
0f9e28c424
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Sources/KeychainSwift.swift

+ 1 - 0
Sources/KeychainSwift.swift

@@ -266,6 +266,7 @@ open class KeychainSwift {
   
   */
   @discardableResult
+  @available(macOS, unavailable, message: "Not implemented on macOS, call delete for every key.")
   open func clear() -> Bool {
     // The lock prevents the code to be run simlultaneously
     // from multiple threads which may result in crashing