Skip to content

octree/CollectionUI

Repository files navigation

CollectionUI

CollectionUI brings UICollectionView and ComposableLayout to SwiftUI.

Usage

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages