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

Use Intrinsic Size When Anchoring #67

Open
MatrixSenpai opened this issue Feb 3, 2018 · 1 comment
Open

Use Intrinsic Size When Anchoring #67

MatrixSenpai opened this issue Feb 3, 2018 · 1 comment

Comments

@MatrixSenpai
Copy link

Most elements (like UILabel) have an intrinsicContentSize. Is it possible to extend Neon to use this automatically?

@valentinradu
Copy link

But it already does that. Just use AutoWidth or AutoHeight for the views that have an intrinsic size.
E.g.:
imageView.anchorToEdge(.top, padding: 20, width: AutoWidth, height: AutoHeight)

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