Rightpoint / RZUtils

Rightpoint Commonly Used Tools
Other
123 stars 22 forks source link

pinned width/height constraint getters return internal constraints #136

Open ZevEisenberg opened 9 years ago

ZevEisenberg commented 9 years ago

Using the methods in RZUtils to retrieve the pinned width or height constraints of a view may sometimes return instances of NSContentSizeLayoutConstraint when you would expect them to return nil. This seems to be an internal representation of the intrinsic content size. Discovered by @jvisenti and @KingOfBrian.

ZevEisenberg commented 9 years ago

This should be prevented against (make sure constraint is not a subclass of NSLayoutConstraint?) or at least well-documented, but I personally prefer just not to use these methods, and to keep track of the constraints myself.