Neon icon indicating copy to clipboard operation
Neon copied to clipboard

Use Intrinsic Size When Anchoring

Open MatrixSenpai opened this issue 8 years ago • 1 comments

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

MatrixSenpai avatar Feb 03 '18 08:02 MatrixSenpai

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)

valentinradu avatar Apr 06 '18 20:04 valentinradu