Skip to content

Commit b43b974

Browse files
committed
delete initialLoad from viewWillTransitionToSize
1 parent a2dd1bc commit b43b974

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

PagingKit/PagingContentViewController.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,6 @@ public class PagingContentViewController: UIViewController {
287287
}
288288

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

0 commit comments

Comments
 (0)