Rightpoint / Anchorage

A collection of operators and utilities that simplify iOS layout code.
MIT License
627 stars 46 forks source link

First time anchorage-usage confusing #81

Closed meieri closed 4 years ago

meieri commented 4 years ago

When I was using Anchorage for the first time, I was trying to anchor a label within a UIViewController. I didn't realize the "container" in the docs was in specific reference to the view, so I first did label.centerAnchors == self.centerAnchors (instead of label.centerAnchors == self.view.centerAnchors) which actually worked, adding to my confusion. I realized the issue when I tried to access the UIViewController's leading and trailing anchors, which of course it has none. However, it does have center, edge, size, vertical, and horizontal anchors, which led me in the wrong direction.

needhamwoodj commented 4 years ago

Closing Issue, Issue was addressed in PR https://github.com/Rightpoint/Anchorage/pull/85 which has been approved and merged.