Reputation: 793
How should I add a margin before the leading of a text view using constraints?
I mean, if it is a left-right language I want to add a margin to the left, but if it is a right-left language I want to add a margin to the right.
Is there a constraint I could use in both cases to solve both situations? Or they are different constraints?
Thanks.
Upvotes: 1
Views: 198
Reputation: 104082
I don't think you should use constraints at all for this purpose. UITextView has a property, textContainerInset, that you can set to put insets for your text on either the left or right (or both if you want).
Upvotes: 1