MaterialTextField
MaterialTextField copied to clipboard
textRectForBounds is wrong with left/rightView
Hi,
textRectForBounds
is sometimes wrong when using left/rightView:
- when
viewMode
is.never
or.whileEditing
everything is working as expected - when
viewMode
is.always
or.whileEditing
, frame is smaller than expected.
It seems coming from the fact that in 1st case UIKit UITextField.textRectForBounds
is returning the full frame while in second it returns frame minus left/right frames.