TestsTested | ✓ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Dec 2017 |
SwiftSwift Version | 3.0.2 |
SPMSupports SPM | ✓ |
Maintained by Yassir Barchi.
YBSlantedCollectionViewLayout is a subclass of UICollectionViewLayout allowing the display of slanted content on UICollectionView.
YBSlantedCollectionViewLayout contains six properties to customize the interface.
var slantingDelta: UInt
var reverseSlantingAngle: Bool
var firstCellSlantingEnabled: Bool
var lastCellSlantingEnabled: Bool
var lineSpacing: CGFloat
var scrollDirection: UICollectionViewScrollDirection
var itemSizeOptions: YBSlantedCollectionViewLayoutSizeOptions
true
. By default, this property is set to false
true
true
UICollectionViewScrollDirectionVertical
To apply the slanting mask on the cellView, use the YBSlantedCollectionViewCell
or subclass it.
This framework is inspired by this prototype released by Matt Bridges.
YBSlantedCollectionViewLayout is available under the MIT license. See the LICENSE file for more info.