Skip to content

Commit

Permalink
Add timer to .commonModes
Browse files Browse the repository at this point in the history
  • Loading branch information
WenchaoD committed Jun 9, 2017
1 parent b7e5d9f commit 731cf09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/FSPagerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ open class FSPagerView: UIView,UICollectionViewDataSource,UICollectionViewDelega
return
}
self.timer = Timer.scheduledTimer(timeInterval: TimeInterval(self.automaticSlidingInterval), target: self, selector: #selector(self.flipNext(sender:)), userInfo: nil, repeats: true)
RunLoop.current.add(self.timer!, forMode: .commonModes)
}

@objc
Expand Down

0 comments on commit 731cf09

Please sign in to comment.