Skip to content

textRectForBounds is wrong with left/rightView #26

@pjechris

Description

@pjechris

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions