Reputation: 1278
Here's my question:
UITextView
object onto it.Without writing any code (i.e. using built-in auto sizing and constraints), here's my goal:
Have this UITextView
's width be almost the width of the screen width, regardless of that screen's width. But have 20 pixels of padding on the left and right.
Help! Is this even possible? Surely it is???
Upvotes: 1
Views: 406
Reputation: 21013
Add the 4 constraints shown in the screenshot.
You are pinning the textview to be 0 points from the top and bottom as well as 20 points from the left (leading) and right (trailing) space.
Upvotes: 1