Expand By
extension UIView {
func expand(by size: CGSize) -> Element
}
Measures the intrinsic size of the view and then adds the additional size.
Examples
var body: Layout {
HStack {
Spacer()
button
.expand(by: CGSize(width: 8, height: 8))
Spacer()
}
}