alberdev / AnimatedField

Animated UITextField with check & filter for default types (email, url, password, price, date...) for iOS written in Swift 5
MIT License
315 stars 48 forks source link

UITextView text jamping #22

Closed Alexandeer closed 4 years ago

Alexandeer commented 4 years ago

After starting editing, the text jumps to the bottom line.

animatedField.type = .multiline animatedField.text = "placeholder" animatedField.format.titleFont = UIFont.systemFont(ofSize: 12, weight: .regular) animatedField.format.textFont = UIFont.systemFont(ofSize: 17, weight: .regular)

Screen Shot 2020-04-10 at 20 56 16
Alexandeer commented 4 years ago

Error in the top inset:

textView.contentInset = UIEdgeInsets(top: 13, left: -5, bottom: 6, right: 0)

Fix:

textView.contentInset = UIEdgeInsets(top: 3, left: -5, bottom: 6, right: 0)

alberdev commented 4 years ago

Hi @Alexandeer !! Fixed & updated: 2.4.4v

Thank you!! ;)