Skip to main content
Question

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

  • May 11, 2021
  • 2 replies
  • 4976 views

Christopher_Carney

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

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


Christopher_Carney

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