chausovSurfStudio / TextFieldsCatalog

This is catalog of various input field with great opportunities for validation and formatting.
MIT License
25 stars 8 forks source link

использовать поле ввода с обводкой , если я делаю programmatically а не через storyboards #74

Closed somerepository closed 4 years ago

somerepository commented 4 years ago
class LoginController: UIViewController {

    private lazy var emailTextField: UITextField = {
        let tf = UITextField()
        tf.textColor = .black
        tf.autocorrectionType = .no
        tf.autocapitalizationType = .none
        tf.keyboardType = .emailAddress
        tf.attributedPlaceholder = NSAttributedString(string:"Email", attributes:[NSAttributedString.Key.foregroundColor: UIColor.systemGray])
        tf.font = UIFont(name: "Font", size: 16)
        tf.delegate = self
        tf.addTarget(self, action: #selector(handleTextInputChange), for: .editingChanged)
        return tf
    }()

Что нужно сделать чтобы emailTextField стал BorderedTextField?