Explorar o código

Apply change to Stream.PropertyKey

Marcin Krzyżanowski %!s(int64=9) %!d(string=hai) anos
pai
achega
6aaa53c517
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      CryptoSwift.playground/Contents.swift

+ 1 - 1
CryptoSwift.playground/Contents.swift

@@ -86,7 +86,7 @@ do {
     }
 
     // print result
-    if let ciphertext = outputStream.property(forKey: Stream.PropertyKey.dataWrittenToMemoryStreamKey.rawValue) as? Data {
+    if let ciphertext = outputStream.property(forKey: Stream.PropertyKey(rawValue: Stream.PropertyKey.dataWrittenToMemoryStreamKey.rawValue)) as? Data {
         print("Encrypted stream data: \(ciphertext.toHexString())")
     }