Skip to content

Commit

Permalink
Fix for issue CosmicMind#1277 - iOS 13 incorrect space between TextFi…
Browse files Browse the repository at this point in the history
…eld and Left Icon.
  • Loading branch information
fanij committed Feb 1, 2020
1 parent ea59f7c commit fc6e6cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/iOS/Text/TextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,10 @@ open class TextField: UITextField, Themeable {
return textRect(forBounds: bounds)
}

open override func leftViewRect(forBounds bounds: CGRect) -> CGRect {
return CGRect(x: 0, y: 0, width: leftViewWidth , height: bounds.height)
}

/**
Prepares the view instance when intialized. When subclassing,
it is recommended to override the prepare method
Expand Down

0 comments on commit fc6e6cc

Please sign in to comment.