Skip to main content
Question

How to have differently aligned elements within an auto layout container?

  • February 4, 2025
  • 0 replies
  • 24 views

Jessica Huang

Basically trying to recreate iMessage’s text input field, where:

  • the text box grows upward as the user inputs more text;
  • the text itself stays center aligned vertically in the text box;
  • the send button is anchored at the bottom while the text box grows.

I’ve figured out the text box growing upwards, but can’t keep the text from also being bottom aligned when the send button is bottom-aligned.

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings