GlidingCollection
public class GlidingCollection : UIView
GlidingCollection control.
Add as subview to your view and implement dataSource
protocol.
-
Delegate protocol.
Declaration
Swift
public var delegate: GlidingCollectionDelegate?
-
Data source protocol.
Declaration
Swift
public var dataSource: GlidingCollectionDatasource? { get set }
-
Index of expanded item.
Declaration
Swift
public var expandedItemIndex: Int { get set }
-
Horizontal scrolling collectionView.
Declaration
Swift
public var collectionView: UICollectionView
-
Expand GlidingCollection
Declaration
Swift
public func expand(at index: Int, animated: Bool = default)
Parameters
index
target index
animated
animate changes
-
Expand next item in list
Declaration
Swift
public func expandNext()
-
Expand previous item in list
Declaration
Swift
public func expandPrevious()
-
Must call super if you override this method.
Declaration
Swift
public func scrollViewDidScroll(_ scrollView: UIScrollView)