Add frameCount public property
This commit is contained in:
parent
310377cb91
commit
0b77356888
|
@ -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.
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue