glyuck / GlyuckDataGrid

DataGridView (multicolumn tables) for iOS based on UICollectionView
MIT License
120 stars 35 forks source link

Ability to scroll one dimension at a time? #10

Closed plastus closed 7 years ago

plastus commented 7 years ago

Hello,

I'm experimenting a bit with this framework and was wondering if there is an easy way to force scrolling across just one axis (x or y) instead of the free panning behavior that is default? I know UICollectionView by default behaves this way, but I can't seem to figure out a way to allow this in DataGrid. I want the user to be able to scroll both directions, but only one at a time.

Any help would be greatly appreciated!

plastus commented 7 years ago

Solved using:

collectionView.isDirectionalLockEnabled = true