Skip to content

Instantly share code, notes, and snippets.

@dmytro-anokhin
Created November 17, 2019 21:24
Show Gist options
  • Select an option

  • Save dmytro-anokhin/788c37f9c885c335d993eca6f53412fd to your computer and use it in GitHub Desktop.

Select an option

Save dmytro-anokhin/788c37f9c885c335d993eca6f53412fd to your computer and use it in GitHub Desktop.
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