https://github.com/shaps80/flowlayout
A high-performance flow layout that provides global headers, footers, section backgrounds and various configurations.
https://github.com/shaps80/flowlayout
Last synced: about 2 months ago
JSON representation
A high-performance flow layout that provides global headers, footers, section backgrounds and various configurations.
- Host: GitHub
- URL: https://github.com/shaps80/flowlayout
- Owner: shaps80
- Created: 2019-07-22T17:42:59.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-30T10:36:53.000Z (about 6 years ago)
- Last Synced: 2025-02-11T18:49:45.603Z (over 1 year ago)
- Language: Swift
- Size: 102 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FlowLayout
A high-performance flow layout that provides global headers, footers, section backgrounds and various configurations.
Checkout FlowLayoutDemo for a Demo project.
## Changelog
### Release 2.0.0
> `FlowLayoutDelegate` has completely new function signatures, so please ensure you've updated all of your implementations to use the correct signature otherwise your layout will not behave correctly.
**Added**
```swift
// Replaces `backgroundLayoutRegion(in:forSectionAt: Int) -> LayoutRegion`
func collectionView(_ collectionView: UICollectionView,
layout: UICollectionViewLayout,
regionForBackgroundInSection section: Int) -> LayoutRegion
// Replaces `backgroundLayoutInsets(in:forSectionAt: Int) -> UIEdgeInsets`
func collectionView(_ collectionView: UICollectionView,
layout: UICollectionViewLayout,
insetsForBackgroundInSection section: Int) -> UIEdgeInsets
// Allows you to 'align' cells within a specified section
func collectionView(_ collectionView: UICollectionView,
layout: UICollectionViewLayout,
alignmentInSection section: Int) -> LayoutAlignment
```
**Deprecated**
```swift
func backgroundLayoutRegion(in:forSectionAt: Int) -> LayoutRegion
func backgroundLayoutInsets(in:forSectionAt: Int) -> UIEdgeInsets
```