A collection of components to build composed component
- Swift 5.5
- iOS 12 +
- MondrianLayout
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
}
}
}
MIT