Can an autolayout button to break to 2 lines when reaching a certain length?

Is there a way to apply a contraint in some way that would automatically break an autolayout button to break to multiple lines when reaching a certain length? The trick here is to maintain a background color that hugs the text length as it grows. Extending the tex field out to a fixed width does it but you lose the full hugging the text length.

The use case here would be a component that mimics a speech bubble for text messages

3 Likes

It’s not possible, you can vote for this suggestion: Wrap elements in Auto Layout to multiple lines

1 Like

Damn, seems like something that should be fairly standard. Are there any releases planned to support this?

1 Like