scrolling: reload data when changing orientation

This commit is contained in:
2026-07-11 22:31:02 +02:00
parent 193bef4def
commit 400febc7b3
+1
View File
@@ -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()
}
}