https://github.com/octree/collectionui
https://github.com/octree/collectionui
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/octree/collectionui
- Owner: octree
- License: mit
- Created: 2023-07-18T10:07:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-24T08:54:26.000Z (almost 3 years ago)
- Last Synced: 2026-03-29T20:57:58.839Z (3 months ago)
- Language: Swift
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CollectionUI
**CollectionUI** brings **UICollectionView** and **ComposableLayout** to **SwiftUI**.
## Usage
```swift
struct ContentView : View {
@State var data: [String] = ["hello", "world"]
var body: some View {
CollectionView {
CollectionSection(id: 0) {
ForEach(data, id:\.self) {
Text($0)
.frame(maxWidth: .infinity)
.frame(height: 66)
}
}
}
}
}
```
## License
**CollectionUI** is licensed under the MIT license.