CosmicMind / CosmicMind/Material

TextField errorVerticalOffset + textInsets bug

Open
#1,253 1 comment 0 reactions 1 assignee Claimed by @adamdahan View on GitHub
bug investigate material
Dominant language
Swift
Stars
12k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

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:
```swift
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.