Something that you might notice when using sidebar type controls is that the side views don’t always scroll exactly like you’d expect when compared to Apple’s native UIScrollView control. Typically they will just follow slide in and stop at an exact point when sliding in, or the added physics just doesn’t seem right. Luis Recuenco recently submitted a slide-in sidebar control called LRScrollingSidebarController aimed specifically at this issue.
Here’s what Luis writes about this occurrence in the read me:
When you drag and release the panels, you feel like they stop suddenly, sharply, the panels don’t flow and slide like they should. Mimicking physics as most of the libraries try is very, very difficult, you won’t do it perfectly and you will feel this sudden speed changes or sharpness and abruptness when releasing the finger with a certain velocity.
LRScrollingSidebarController solves this problem by simply using an actual scroll view so the physics perform exactly as you’d expect.
A couple of images from the LRScrollingSidebarController example project:
You can find LRScrollingsidebarController on Github here.
Thanks to Luis for the submission.
- Open Source Component For Making A Nice iOS 7 Control Center Style Animated Side Bar Menu
- Open Source: Library For Fully Functional Keynote Style Image Sidebars
- Open Source Component For Creating An Animated Scrolling Horizontal Menu
- iOS Open Source Traditional Custom Scroll Bar Control With Progress Indicator
- Custom iOS UI Control Providing A More Customizable UIScrollView Scrollbar
Original article: An Open source iOS Slide-In Sidebar Component With Physics Exactly Like A UIScrollView
©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.