You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 26, 2019. It is now read-only.
also scroll both two direction even if I set "Direction Lock Enabled" #8
A collection view will scroll in both directions if the content size of the collection view is larger than the bounds of the screen.
The collection view's content size is determined by the delegate method collectionViewContentSize.
Here's a quick way to ensure that the collection view does not scroll horizontally. You can copy and paste this into the CustomCollectionViewLayout project.
Activity
Roh19 commentedon Mar 14, 2016
Hi,
The same issue happens for me too. Please help me out.
jkereako commentedon Aug 5, 2016
A collection view will scroll in both directions if the content size of the collection view is larger than the bounds of the screen.
The collection view's content size is determined by the delegate method
collectionViewContentSize.Here's a quick way to ensure that the collection view does not scroll horizontally. You can copy and paste this into the CustomCollectionViewLayout project.
This is for example only. Don't use this in production because it will clip the right edge of the right-most cells.