Skip to content

TextField errorVerticalOffset + textInsets bug #1253

Open
@M0rtyMerr

Description

@M0rtyMerr

Setting both errorVerticalOffset and textInsets.bottom produce unexpected behavior. Cursor is shown only partly.

Sample project: just new project with added ErrorTextField (without height constraints). And:

override func viewDidLoad() {
    super.viewDidLoad()
    textField.errorVerticalOffset = 2
    textField.textInsets.bottom = 25
}

Reproducible 100%
I was able to workaround it setting adding textField.text = ""

Screenshot 2019-08-18 at 15 03 33

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions