Swiftpack.co - FluidGroup/CompositionKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by FluidGroup.
FluidGroup/CompositionKit 0.4.3
A collection of components to build composed component
⭐️ 9
🕓 1 week ago
iOS
.package(url: "https://github.com/FluidGroup/CompositionKit.git", from: "0.4.3")

CompositionKit

A collection of components to build composed component

Requirements

Components (building blocks)

AnyView

To create an anonymous view with making content

func makeSomethingView(onTap: @escaping () -> Void) -> UIView {

  let button = UIButton(..., primaryAction: .init { _ in 
    onTap()
  })
  
  return AnyView { view in 
    VStackBlock {
      button
    }
  }
}

License

MIT

GitHub

link
Stars: 9
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics