From 26717bf70b96ede5a57196a53ce5f31965936f30 Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 3 Aug 2020 20:42:11 +0200 Subject: [PATCH] Renamed placeHolder to placeholder --- ui/BankingiOSApp/BankingiOSApp/ui/UIKitTextField.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/UIKitTextField.swift b/ui/BankingiOSApp/BankingiOSApp/ui/UIKitTextField.swift index 891fb48b..631a47ff 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/UIKitTextField.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/UIKitTextField.swift @@ -8,7 +8,7 @@ struct UIKitTextField: UIViewRepresentable { @Binding private var text: String - private var placeHolder: String + private var placeholder: String private var keyboardType: UIKeyboardType = .default private var isPasswordField: Bool = false @@ -22,7 +22,7 @@ struct UIKitTextField: UIViewRepresentable { init(_ titleKey: String, text: Binding, keyboardType: UIKeyboardType = .default, isPasswordField: Bool = false, focusOnStart: Bool = false, focusNextTextFieldOnReturnKeyPress: Bool = false, actionOnReturnKeyPress: (() -> Bool)? = nil, textChanged: ((String) -> Void)? = nil) { - self.placeHolder = titleKey + self.placeholder = titleKey _text = text self.keyboardType = keyboardType @@ -39,7 +39,7 @@ struct UIKitTextField: UIViewRepresentable { func makeUIView(context: UIViewRepresentableContext) -> UITextField { let textField = UITextField(frame: .zero) - textField.placeholder = placeHolder.localize() + textField.placeholder = placeholder.localize() textField.keyboardType = keyboardType textField.isSecureTextEntry = isPasswordField