Closed fl034 closed 5 years ago
I was using below code to get zero padding for my UITextView
UITextView
textView.textContainer.lineFragmentPadding = 0 textView.textContainerInset = .zero
Until iOS 12 I was fine. But with iOS 13 the placeholder got 5pt horizontal inset which is the default of lineFragmentPadding
lineFragmentPadding
My PR adds the mirroring of the given value into the internal placeholderTextView
placeholderTextView
Thanks for your work! I'll add some tests and make a new release shortly :)
Glad I could contribute. Thanks to you for this great project 🙌
I was using below code to get zero padding for my
UITextView
Until iOS 12 I was fine. But with iOS 13 the placeholder got 5pt horizontal inset which is the default of
lineFragmentPadding
My PR adds the mirroring of the given value into the internal
placeholderTextView