- HorizontalHeaderFlowLayout is a subclass of UICollectionViewLayout written in pure Swift language.
- This library uses Apple's UIKit framework.
- Easy to use.
- Cocoapods Integration.
- iOS 9.0+
- Xcode 10+
- HorizontalHeaderFlowLayout is available on CocoaPods.
- Current version compatible with Swift 4.1.
Add the following line to your Podfile:
pod 'HorizontalHeaderFlowLayout', '~> 1.0'
- Clone the repository or download it as a .zip file.
- Drag and drop HeaderFlowLayout.swift to your project.
1. Change layout of CollectionView to custom and assign HeaderFlowLayout as class.
2. Import Framework
import HorizontalHeaderFlowLayout
3. Conform to HeaderFlowLayoutDelegate
class ViewController: UIViewController, HeaderFlowLayoutDelegate {
}
4. Implement required Delegate Methods.
1. Import Framework
import HorizontalHeaderFlowLayout
2. Instantiate HorizontalHeaderFlowLayout
and add to CollectionView object.
collectionView.collectionViewLayout = HeaderFlowLayout()
3. Conform to HeaderFlowLayoutDelegate
class ViewController: UIViewController, HeaderFlowLayoutDelegate {
}
4. Implement required Delegate Methods.
Any suggestions and contribution towards making it a better library is most welcome.
This project is licensed under the MIT License - LICENSE.