         }
     }
 
+    /// A delegate to be called after reach max repeat count.
     public var delegate: AnimatedImageViewDelegate?
     
     // MARK: - Private property

import UIKit
import ImageIO

public protocol AnimatedImageViewDelegate: class {
    func didFinishAnimate(for imageView: AnimatedImageView)
}


        }
    }

    /// The repeat count.
    public var repeatCount = RepeatCount.infinite {
        didSet {
            if oldValue != repeatCount {
