 
 import UIKit
 import ImageIO
+
+public protocol AnimatedImageViewDelegate: class {
+    func didFinishAnimate(for imageView: AnimatedImageView)
+}
+
+extension AnimatedImageViewDelegate {
+    public func didFinishAnimate(for imageView: AnimatedImageView) {}
+}
 
 /// `AnimatedImageView` is a subclass of `UIImageView` for displaying animated image.
 open class AnimatedImageView: UIImageView {

            }
        }
    }
    
    // MARK: - Private property
    /// `Animator` instance that holds the frames of a specific image in memory.


            if animator?.isReachMaxRepeatCount ?? false {
                stopAnimating()
                delegate?.didFinishAnimate(for: self)
            }
        }
    }
