I\'m trying to add a left margin to a UITextView.
I\'ve tried setting the property contentInset, see below:
UITextView *textView = [[UITextView alloc] in
You can try this code below with Swift 3.0
// Align the text to the left edge of textContainer textView.textContainer.lineFragmentPadding = 16 // Align the text with the top of textContainer textView.textContainerInset = UIEdgeInsets.zero
It works for me.