Skip to content

Instantly share code, notes, and snippets.

@ShoMasegi
Created November 25, 2018 13:41
Show Gist options
  • Save ShoMasegi/9b5bb54699b047454127b7b0a7a316d6 to your computer and use it in GitHub Desktop.
Save ShoMasegi/9b5bb54699b047454127b7b0a7a316d6 to your computer and use it in GitHub Desktop.
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