Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 515 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 515 Bytes

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