Created
August 4, 2021 11:17
-
-
Save varun04/7041460ea43ea89aa1821c57bab32a04 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
| func isFrameComplete(at index: Int) -> Bool { | |
| assert(frameCount > index) | |
| if index == frameCount - 1 { | |
| return CGImageSourceGetStatus(imageSource) == .statusComplete | |
| } | |
| return CGImageSourceGetStatusAtIndex(imageSource, index) == .statusComplete | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment