Skip to content

Commit

Permalink
delete initialLoad from viewWillTransitionToSize
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuhiro4949 committed Jan 10, 2020
1 parent a2dd1bc commit b43b974
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions PagingKit/PagingContentViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,6 @@ public class PagingContentViewController: UIViewController {
}

override public func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
removeAll()
initialLoad(with: leftSidePageIndex)
coordinator.animate(alongsideTransition: { [weak self] (context) in
guard let _self = self else { return }
_self.scroll(to: _self.leftSidePageIndex, animated: false)
Expand Down

0 comments on commit b43b974

Please sign in to comment.