scrolling: reload data when changing orientation
This commit is contained in:
@@ -662,6 +662,7 @@ class ViewController: UIViewController, UIGestureRecognizerDelegate {
|
||||
var offset = scrollingCollectionView.contentOffset
|
||||
offset.y *= (screenSize.width / screenSize.height)
|
||||
scrollingCollectionView.setContentOffset(offset, animated: false)
|
||||
scrollingCollectionView.reloadData()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user