Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextField left view rect not returning correct size #1298

Open
markst opened this issue May 13, 2020 · 0 comments
Open

TextField left view rect not returning correct size #1298

markst opened this issue May 13, 2020 · 0 comments

Comments

@markst
Copy link
Contributor

markst commented May 13, 2020

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))
}
@markst markst changed the title Left view rect not returning correct size TextField left view rect not returning correct size Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant