Skip to main content
Christopher_Carney
May 11, 2021 3:59 PM UTC
Question

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

This topic has been closed for replies.

2 replies

Gleb
Power Member
May 12, 2021 3:37 AM UTC

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

Christopher_Carney
May 12, 2021 1:16 PM UTC

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