iOS Question How to scroll part of a screen vertically only

App Dude

Active Member
Licensed User
Longtime User
I'm want a screen to have a fixed upper section and a vertically-scrolling lower section, like the first image below.

I've been experimenting and got it mostly working, except I can drag the scrolling panel left-to-right and it will drag, but will bounce back. Second image shows it with me "pulling the lower panel to the lower left". It looks like this, where the white is the panel that should scroll only horizontally, and red is behind that. (Colors specifically chosen at this time so I can see what's happening)

What's the correct way to lock the horizontal motion so it only scrolls vertically?
Code attached.

Thanks.

1672770555644.png



1672770888527.jpeg
 

Attachments

  • TestProject_04_UI.zip
    164.8 KB · Views: 83

App Dude

Active Member
Licensed User
Longtime User
1. Uncheck the Bounces property in the ScrollView properties.
2. Make sure that the content width isn't larger than the ScrollView width.
Wow! Absolutely baffled how I never saw that "bounces" parameter on there.
Thanks.
 
Upvote 0
Top