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

Add offset operator to allow usage of NSLayoutAnchor.anchorWithOffset(to:) APIs #352

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jayrhynas
Copy link

Uses with NSLayoutAnchors and anchorWithOffset(to:) to create a Dimension representing the distance between two Edge
Dimension can now hold an NSLayoutDimension anchor (representing an offset dimension) or produce a NSLayoutDimension for width or height, as required.

I used |-| for the custom operator, but we could use a different operator such as ]-[ (to mirror VFL) or some other operator.

Uses with NSLayoutAnchors and anchorWithOffset(to:) to create Dimensions representing the distance between two Edges
Dimension can now hold an NSLayoutDimension anchor (representing an offset dimension) or produce a NSLayoutDimension for width or height, as required.
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

Successfully merging this pull request may close these issues.

1 participant