Commit 65d8767b by Daniel Dahan

development: set leftViewMode to always as a default for TextField

parent 885c63b1
...@@ -110,7 +110,6 @@ open class BottomNavigationController: UITabBarController { ...@@ -110,7 +110,6 @@ open class BottomNavigationController: UITabBarController {
view.clipsToBounds = true view.clipsToBounds = true
view.contentScaleFactor = Screen.scale view.contentScaleFactor = Screen.scale
view.backgroundColor = .white view.backgroundColor = .white
// delegate = self
prepareTabBar() prepareTabBar()
} }
......
...@@ -101,7 +101,7 @@ open class TextField: UITextField { ...@@ -101,7 +101,7 @@ open class TextField: UITextField {
return leftViewOffset + height return leftViewOffset + height
} }
/// The leftView width value. /// The leftView offset value.
open var leftViewOffset: CGFloat = 16 open var leftViewOffset: CGFloat = 16
/// Placeholder normal text /// Placeholder normal text
...@@ -441,6 +441,7 @@ extension TextField { ...@@ -441,6 +441,7 @@ extension TextField {
/// Prepares the leftView. /// Prepares the leftView.
fileprivate func prepareLeftView() { fileprivate func prepareLeftView() {
leftView?.contentMode = .left leftView?.contentMode = .left
leftViewMode = .always
updateLeftViewColor() updateLeftViewColor()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment