MaterialTextField
MaterialTextField copied to clipboard
textRectForBounds is wrong with left/rightView
Hi,
textRectForBounds is sometimes wrong when using left/rightView:
- when
viewModeis.neveror.whileEditingeverything is working as expected - when
viewModeis.alwaysor.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.