robb / Cartography

A declarative Auto Layout DSL for Swift :iphone::triangular_ruler:
Other
7.34k stars 525 forks source link

Make ConstraintGroup's constraints array public(read) ? #249

Open runningskull opened 7 years ago

runningskull commented 7 years ago

In my case, I'd like to be able to animate them directly using ie. pop, so it would be handy to have at least read-only access to the array.

❤️ Cartography. Thanks for it :)

EDIT: just realized Constraint is an internal class. Maybe exposing a computed property like layoutConstraints: [NSLayoutConstraint] is a better idea?