From fc6e6cc414aec7743067e01c0021de74994731c0 Mon Sep 17 00:00:00 2001 From: Fani Jashmakovska Date: Sun, 2 Feb 2020 00:42:35 +0100 Subject: [PATCH] Fix for issue #1277 - iOS 13 incorrect space between TextField and Left Icon. --- Sources/iOS/Text/TextField.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/iOS/Text/TextField.swift b/Sources/iOS/Text/TextField.swift index 4a7a282ba..10db4de3a 100644 --- a/Sources/iOS/Text/TextField.swift +++ b/Sources/iOS/Text/TextField.swift @@ -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