Repository navigation
New
.orbital.add()adds a subview and activates its constraints in one call:view.orbital.add(label, [.top(16), .leading(16), .trailing(16)])label.orbital.add(to: view, [.top(16), .leading(16), .trailing(16)])label.orbital.add(to: controller, [.top(16), .leading(16)])view.orbital.add(avatar, nameLabel) { ... }for several subviews
- All of them accept an array or a variadic list. Except for the closure form, they return the activated constraints:
let constraints = view.orbital.add(label, .top(16))
Unchanged
orbit(add:)andorbit(to:)keep working with no changes on your side. They now forward toadd()
Docs
- README now shows
.orbital.add()as the primary form