Hi everyone! I was looking around in the source code at ConstraintLayout and it's using
which is Deprecated with the message:
This API is unsafe for UI performance at scale - using it incorrectly will lead " +
"to exponential performance issues. This API should be avoided whenever possible.
Even though it's annotated with Suppress("Deprecated") that's still worrisome. Could anyone shed some light on whether or not ConstraintLayout is indeed safe to use at scale in compose?
1 year ago
It can end up being more expensive than compose's layout system would prefer in some constraint configurations. If you're concerned, the best thing to do is profile your use case between ConstraintLayout and other layout implementations