Skip to content
A way to implement nested UIScrollView.
Swift Ruby
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.
Example
NonScrollView
.gitignore
.travis.yml
LICENSE
NonScrollView.podspec
README.md
_Pods.xcodeproj

README.md

NonScrollView

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

In the example project, you may tap on even rows to add more cells, and odd rows to decrease.

Installation

NonScrollView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'NonScrollView'
pod 'NonScrollView/Containers' # to install example containers that you should never use in production

Usage

ViewPlacer

You need to provide a NonScrollViewLayout for NonScrollView to layout subviews. A NonScrollViewLayout consists of a few ViewPlacers for NonScrollView to place its subviews, a block to generate contentSize and a block to generate contentInset.

Please check ScrollViewChainController for example.

NonScrollViewScrollRecognizer

You may also treat NonScrollView as a gesture recognizer. Please check HeaderSegmentController for example.

You are not recommended to use any of the containers in NonScrollView/Containers, they are for experiments only. Though they should work, edge cases may not be handled correctly.

License

NonScrollView is available under the MIT license. See the LICENSE file for more info.

You can’t perform that action at this time.