NonScrollView
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 productionUsage
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.