Created
November 25, 2018 13:41
-
-
Save ShoMasegi/9b5bb54699b047454127b7b0a7a316d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private lazy var nameTextField: CustomTextField = { | |
let view = CustomTextField(frame: .zero) | |
view.delegate = self | |
view.textField.keyboardType = .emailAddress | |
view.iconImageView.image = UIImage(named: "account") | |
view.defaultPlaceholderText = "User name" | |
return view | |
}() | |
func customTextField(_ customTextField: CustomTextField, textFieldDidChange text: String?) { | |
print(text) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment