Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider to bring back topLayoutGuideCartography and bottomLayoutGuideCartography #287

Closed
khanhshopback opened this issue Mar 30, 2018 · 2 comments

Comments

@khanhshopback
Copy link

I was using those two edges, but look like they were removed after I upgraded to 3.0.1
Can we bring them back? Or any reason why you removed it?

@corujautx
Copy link
Contributor

corujautx commented Mar 31, 2018

It was removed because Cartography now supports constraining UILayoutSupports and UILayoutGuides by using the constrain function.

Consider replacing your code where topLayoutGuideCartography is used to something akin to:

constrain(view, self.car_topLayoutGuide) { view, guide in 
     view.top == guide.bottom
}

@khanhshopback
Copy link
Author

I see. Thank @corujautx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants