Skip to content

Commit

Permalink
fix issue #22 multiple startAnimating calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jcavar committed Sep 26, 2015
1 parent 1b76154 commit e51a323
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Refresher/PullToRefreshView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ public class PullToRefreshView: UIView {
internal var loading: Bool = false {

didSet {
if loading {
startAnimating()
} else {
stopAnimating()
if loading != oldValue {
if loading {
startAnimating()
} else {
stopAnimating()
}
}
}
}
Expand Down

0 comments on commit e51a323

Please sign in to comment.