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

Themeable symbolic constant #19

Open
cacaodev opened this issue Oct 24, 2016 · 0 comments
Open

Themeable symbolic constant #19

cacaodev opened this issue Oct 24, 2016 · 0 comments

Comments

@cacaodev
Copy link
Owner

cacaodev commented Oct 24, 2016

A symbolic constant is the default value between 2 layout items in the Constraint based layout system.

For example, the default space between 2 sibling buttons, between a button and a label, between a button and its superview. The value can differ depending on the orientation (vertical or horizontal).

A private method for creating constraints with this special value will be added:
- constraintWithFirstAnchor:secondAnchor:relation:multiplier:symbolicConstant:

An internal object called CPSpace will take as input the 2 items, the anchor or orientation and compute the resolved constant based on the current theme.

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

No branches or pull requests

1 participant