An open API service indexing awesome lists of open source software.

https://github.com/octree/collectionui


https://github.com/octree/collectionui

Last synced: about 2 months ago
JSON representation

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.