kitasuke / PagingMenuController

Paging view controller with customizable menu in Swift
MIT License
2.5k stars 449 forks source link

not call UIView.animate if no animation #303

Closed wwwjfy closed 7 years ago

wwwjfy commented 7 years ago

According to UIView's document, completion block in UIView.animate is performed at the beginning of the next run loop cycle. This will cause an obvious pause when switching to a view controller not next to the current one.