Skip to content

Comment on Auto Layout Performance on iOSparent

Comments

I don't know much about how autolayout works, but wouldn't it be possible to solve some of the constraints at compile time? e.g when you compile your app for iphone it could try and solve as much as possible considering the known screen size, etc..

The idea is that it accounts for variations in things like string length for labels, image sizes and proportions -- things not always known at compile time.

But, for layouts where that's not the case, a compile time constraint builder would indeed be nice.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.