Skip to content
Swift implementation of UIScrollView-like view based upon Ole Begemann's example
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
SwiftScrollView.xcodeproj
SwiftScrollView
SwiftScrollViewTests
LICENSE
README.md

README.md

SwiftScrollView

Swift implementation of UIScrollView-like view based upon Ole Begemann's example.

Background

I needed some custom behavior from UIScrollView and came across an outstanding blog post: Understanding UIScrollView. This happened as I was learning Swift and iOS development in general, so I figured translating the example to Swift would be a good exercise.

Demo

To demonstrate a reason why you'd want to make a custom scrolling view, the included ViewController sets one UIPanGestureRecognizer to control two SwiftScrollViews simultaneously.

You can’t perform that action at this time.