Prechádzať zdrojové kódy

Apply change to Stream.PropertyKey

Marcin Krzyżanowski 9 rokov pred
rodič
commit
6aaa53c517
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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())")
     }