Skip to content

Instantly share code, notes, and snippets.

@dmytro-anokhin
Created November 19, 2019 04:38
Show Gist options
  • Save dmytro-anokhin/69e8d24b4558620c7dccd34b1edd7678 to your computer and use it in GitHub Desktop.
Save dmytro-anokhin/69e8d24b4558620c7dccd34b1edd7678 to your computer and use it in GitHub Desktop.
extension ImageDecoder {
/// Creates static or animated image depending on `frameCount`.
var uiImage: UIImage?
/// Creates animated image if there is more than one frame.
var animatedUIImage: UIImage?
/// Creates static image from the first frame.
var staticUIImage: UIImage?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment