CosmicMind/Material

TextField left view rect not returning correct size

markst opened this issue · 0 comments

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))
}