iOS Swift

IOS Swift Direction Lock Enabled in ScrollView


In xcode, there is an option for UIScrollViews called Direction Lock Enabled. But the explanation is less than useful – “a boolean value that determines if scrolling is disabled in a particular direction“.

What it really does is disabled multiple direction scrolling. Once you start scrolling in one direction, say horizontally, it will lock the ability to move vertically. Which this sounds awesome, but it has a mode that confuses me — Diagonal.

Modes:

  • Horizontal Only
  • Vertical Only
  • Diagonal Only
openanalytics 1933 views

I'm a 34 year old UIUC Computer Engineer building mobile apps, websites and hardware integrations with an interest in 3D printing, biotechnology and Arduinos.


View Comments
There are currently no comments.

This site uses Akismet to reduce spam. Learn how your comment data is processed.