Skip to content

TextField left view rect not returning correct size #1298

@markst

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions