To run the example project, clone the repo, and run pod install
from the Example directory first.
QKSliderView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'QKSliderView'
- Drag a
UICollectionView
to storyboard. - Open
Inspector panel
, change class toQKSliderView
.
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
QKSliderView is available under the MIT license. See the LICENSE file for more info.