You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the NSLayoutAnchor, we can now use it to avoid the layout format language. Imagine, in your function that defines layout, we could pass the view and return an array of objects. Like this:
lettitle="title".build(UILabel.self).style([.numberOfLines(0),.text("test")])letsubtitle="subtitle".build(UILabel.self).style([.numberOfLines(0),.text("subtitle")])letbrick="details".build().bricks(title){ container, title inreturn[
title.centerXAnchor.constraint(equalTo: container.centerXAnchor),
title.centerYAnchor.constraint(equalTo: container.centerYAnchor),]}
However, this approach will require some refactoring. I can volunteer, if you want :)
The text was updated successfully, but these errors were encountered:
With the
NSLayoutAnchor
, we can now use it to avoid the layout format language. Imagine, in your function that defines layout, we could pass the view and return an array of objects. Like this:However, this approach will require some refactoring. I can volunteer, if you want :)
The text was updated successfully, but these errors were encountered: