CollectionViewSlantedLayout alternatives and similar libraries
Based on the "UICollectionView" category.
Alternatively, view YBSlantedCollectionViewLayout alternatives based on common mentions on social networks and blogs.
-
FSPagerView
FSPagerView is an elegant Screen Slide Library. It is extremely helpful for making Banner View、Product Show、Welcome/Guide Pages、Screen/ViewController Sliders. -
Gliding Collection
:octocat: Gliding Collection is a smooth, flowing, customizable decision for a UICollectionView Swift Controller. iOS library made by @Ramotion -
CenteredCollectionView
A lightweight UICollectionViewLayout that 'pages' and centers its cells 🎡 written in Swift -
Card Slider
:octocat: 🃏 Cardslider is a design UI controller that allows you to swipe through cards with pictures and accompanying descriptions. -
GravitySlider
🔄 GravitySlider is a beautiful alternative to the standard UICollectionView flow layout. -
RAReorderableLayout
DISCONTINUED. A UICollectionView layout which can move an item with drag and drop. -
Blueprints
DISCONTINUED. :cyclone: Blueprints - A framework that is meant to make your life easier when working with collection view flow layouts. -
ReplaceAnimation
Pull-to-refresh animation in UICollectionView with a sticky header flow layout, written in Swift :large_orange_diamond: -
CarLensCollectionViewLayout
DISCONTINUED. An easy-to-use Collection View Layout for card-like animation. -
CollectionViewShelfLayout
A UICollectionViewLayout subclass displays its items as rows of items similar to the App Store Feature tab without a nested UITableView/UICollectionView hack. -
AZCollectionViewController
Easy way to integrate pagination with dummy views in CollectionView, make Instagram "Discover" within minutes. -
CheckmarkCollectionViewCell
UICollectionViewCell with checkbox when it isSelected and empty circle when not - like Photos.app "Select" mode. -
FlexibleRowHeightGridLayout
A UICollectionView grid layout designed to support Dynamic Type by allowing the height of each row to size to fit content. -
CustomCollectionLayout
This is an example project for my article called "UICollectionView Tutorial: Changing presentation on the fly" -
GoodProvider
🚀UITableView and UICollectionView provider to simplify basic scenarios of showing the data.
InfluxDB - Purpose built for real-time analytics at any scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of CollectionViewSlantedLayout or a related project?
README
CollectionViewSlantedLayout is a subclass of the UICollectionViewLayout allowing the display of slanted cells in a UICollectionView.
Features
- [x] Pure Swift 5.
- [x] Works with every UICollectionView.
- [x] Horizontal and vertical scrolling support.
- [x] Dynamic cells height
- [x] Fully Configurable
Installation
CocoaPods
CollectionViewSlantedLayout is available through CocoaPods. To install it, simply add the following line to your Podfile:
use_frameworks!
pod 'CollectionViewSlantedLayout', '~> 3.1'
Carthage
You can also install it via Carthage. To do so, add the following to your Cartfile:
github 'yacir/CollectionViewSlantedLayout'
Usage
Import
CollectionViewSlantedLayout
module to your controllerimport CollectionViewSlantedLayout
Create an instance and add it to your
UICollectionView
.let slantedSayout = CollectionViewSlantedLayout() UICollectionView(frame: .zero, collectionViewLayout: slantedSayout)
Use the
CollectionViewSlantedCell
class for your cells or subclass it.
Find a demo in the Examples folder.
Properties
slantingSize:
@IBInspectable var slantingSize: UInt
The slanting size. The default value of this property is
75
.slantingDirection:
var slantingDirection: SlantingDirection
The slanting direction. The default value of this property is
upward
.slantingAngle:
fileprivate(set) var slantingAngle: CGFloat
The angle, in radians, of the slanting. The value of this property could be used to apply a rotation transform on the cell's contentView in the
collectionView(_:cellForItemAt:)
method implementation.if let layout = collectionView.collectionViewLayout as? CollectionViewSlantedLayout { cell.contentView.transform = CGAffineTransform(rotationAngle: layout.rotationAngle) }
scrollDirection:
var scrollDirection: UICollectionViewScrollDirection
The scroll direction of the grid. The grid layout scrolls along one axis only, either horizontally or vertically. The default value of this property is
vertical
.isFirstCellExcluded:
@IBInspectable var isFirstCellExcluded: Bool
Set it to
true
to disable the slanting for the first cell. The default value of this property isfalse
.isLastCellExcluded:
@IBInspectable var isLastCellExcluded: Bool
Set it to
true
to disable the slanting for the last cell. The default value of this property isfalse
.lineSpacing:
@IBInspectable var lineSpacing: CGFloat
The spacing to use between two items. The default value of this property is
10.0
.itemSize:
@IBInspectable var itemSize: CGFloat
The default size to use for cells. If the delegate does not implement the
collectionView(_:layout:sizeForItemAt:)
method, the slanted layout uses the value in this property to set the size of each cell. This results in cells that all have the same size. The default value of this property is225
.zIndexOrder:
var zIndexOrder: ZIndexOrder
The zIndex order of the items in the layout. The default value of this property is
ascending
.
Protocols
The CollectionViewDelegateSlantedLayout
protocol defines methods that let you coordinate with a CollectionViewSlantedLayout
object to implement a slanted layout. The CollectionViewDelegateSlantedLayout
protocol has the following methods:
optional func collectionView(_ collectionView: UICollectionView,
layout collectionViewLayout: CollectionViewSlantedLayout,
sizeForItemAt indexPath: IndexPath) -> CGFloat
This method asks the delegate for the size of the specified item’s cell.
If you do not implement this method, the slanted layout uses the values in its itemSize
property to set the size of items instead. Your implementation of this method can return a fixed set of sizes or dynamically adjust the sizes based on the cell’s content.
Author
Acknowledgement
This framework is inspired by this prototype released by Matt Bridges.
License
CollectionViewSlantedLayout is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the CollectionViewSlantedLayout README section above
are relevant to that project's source code only.