Răsfoiți Sursa

Apply change to Stream.PropertyKey

Marcin Krzyżanowski 9 ani în urmă
părinte
comite
6aaa53c517
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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())")
     }