Material icon indicating copy to clipboard operation
Material copied to clipboard

TextField errorVerticalOffset + textInsets bug

Open M0rtyMerr opened this issue 6 years ago • 1 comments

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

M0rtyMerr avatar Aug 18 '19 22:08 M0rtyMerr

Hey! Thank you! We'll take a look at this soon.

OrkhanAlikhanov avatar Aug 19 '19 13:08 OrkhanAlikhanov