Skip to content

qkzhu/QKSliderView

Repository files navigation

QKSliderView

CI Status Version License Platform 中文 README

Preview

Example

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

Installation

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

pod 'QKSliderView'

How to use (or refer to Example)

Using storyboard

  1. Drag a UICollectionView to storyboard.
  2. Open Inspector panel, change class to QKSliderView.

3. Open `Inspector panel`, update neccessary properties such as total number of rows, columns etc.

Programmatically

let sliderView = QKSliderView(rows: 2, columns: 2, cellGapH: 8, cellGapV: 4, cellRemainWidth: 8)
sliderView.dataSource = self //UICollectionViewDataSource
self.view.addSubview(sliderView)
// then add constraints or adjust frame

Terms explanation

Author

qiankun

License

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

About

A CollectionView with customised layout, allow a portion of previous and next cell shows on the screen.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published