UIViewKit icon indicating copy to clipboard operation
UIViewKit copied to clipboard

Enhance UIView Autolayout API for Inline Activation/Deactivation with Method Chaining Support

Open Adobels opened this issue 1 year ago • 0 comments

Implement a method chaining pattern in the UIViewDSL autolayout API, allowing developers to activate or deactivate constraints within the same line as their definition. For example:

view.topAnchor.constraint(equalTo: otherView.bottomAnchor)
     .ibIsActive(true)
     .ibIsActive(false)

Adobels avatar Jan 05 '24 17:01 Adobels