Skip to content

Commit

Permalink
Added some comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmao0416 committed Dec 21, 2017
1 parent 7a1205d commit 3f6907c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/AnimatedImageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@
import UIKit
import ImageIO

/// Protocol of `AnimatedImageView`.
public protocol AnimatedImageViewDelegate: class {
/**
Called after the animatedImageView has reached the max repeat count.

- parameter imageView: The animatedImageView that is being animated.
*/
func didFinishAnimate(for imageView: AnimatedImageView)
}

Expand Down Expand Up @@ -103,6 +109,7 @@ open class AnimatedImageView: UIImageView {
}
}

/// The repeat count.
public var repeatCount = RepeatCount.infinite {
didSet {
if oldValue != repeatCount {
Expand All @@ -113,6 +120,7 @@ open class AnimatedImageView: UIImageView {
}
}

/// A delegate to be called after reach max repeat count.
public var delegate: AnimatedImageViewDelegate?

// MARK: - Private property
Expand Down

0 comments on commit 3f6907c

Please sign in to comment.