The Wayback Machine - https://web.archive.org/web/20200716104459/https://github.com/topics/nslayoutconstraints
Skip to content
#

nslayoutconstraints

Here are 17 public repositories matching this topic...

winstondu
winstondu commented Aug 28, 2019

CSS has the ability to allow proportional margin and padding:
https://webplatform.github.io/docs/guides/the_css_layout_model/#Proportional-margins-and-padding-in-the-W3C-box-model

I was wondering if it is possible to implement a similar concept with edges. For example, if I wanted my top margin of a subview to its superview to be 20% of the superview height (i.e. subview.top = superview.top +

Improve this page

Add a description, image, and links to the nslayoutconstraints topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the nslayoutconstraints topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.