Created
May 21, 2020 05:57
-
-
Save stoqn4opm/6d2f8bc765a515a5cc3d81e4a4cbceab to your computer and use it in GitHub Desktop.
`UICollectionView` subclass that makes all its instances have the same scroll offset. When one instance scrolls all others will follow to the same content offset.
great
Can you give an example of its use?
@J-Arji have a look at this https://stackoverflow.com/a/61928395/7013945
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you want collection views to scroll simultaneously, make them subclass from this class and they will. You can apply the same technique to tableviews and scroll views as well, by just changing the parent class from
UICollectionView
to eitherUIScrollView
orUITableView