Created
November 17, 2019 21:24
-
-
Save dmytro-anokhin/788c37f9c885c335d993eca6f53412fd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private(set) var isAllDataReceived: Bool = false | |
| func setData(_ data: Data, allDataReceived: Bool) { | |
| assert(!isAllDataReceived) | |
| isAllDataReceived = allDataReceived | |
| CGImageSourceUpdateData(imageSource, data as CFData, allDataReceived) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment