Skip to content

TextField left view rect not returning correct size #1298

Description

@markst

image

My current resolution is to subclass the TextField & override:

override public func leftViewRect(forBounds bounds: CGRect) -> CGRect {
  return .init(origin: .zero, size: .init(width: leftViewWidth, height: bounds.height))
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions