For each row of the design below, I have a hidden “highlight” layer that sits behind the text, so I can show/hide depending on context (eg. the last row). The rows have vertical auto layout applied.
However, I came back to the design today and when I show/hide the highlight - instead of constraining to the size of the highlight (like it did before, even when it’s hidden), it constrains to the size of the text instead and messes up the layout (as shown on the right).
Any idea why there is this sudden change in behaviour, whether it’s a bug or is it expected?
Please see video demo below, where I show/hide and it messes up the layout.