Add frameCount public property

This commit is contained in:
Storix 2016-03-11 00:54:51 +02:00
parent 310377cb91
commit 0b77356888
1 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,11 @@ public class AnimatableImageView: UIImageView {
return !displayLink.paused
}
/// A computed property that returns the total number of frames in the GIF.
public var frameCount: Int {
return animator?.frameCount ?? 0
}
/// Prepares the frames using a GIF image file name, without starting the animation.
/// The file name should include the `.gif` extension.
///