     
     //MARK: UITextFieldDelegate
     
-    func textFieldDidBeginEditing(textField: UITextField) {
+    func textFieldDidBeginEditing(_ textField: UITextField) {
         //print("textFieldDidBeginEditing:")
         self.delegate?.tokenInputViewDidBeginEditing(aView: self)
         

            context.move(to: CGPoint(x: self.bounds.width, y: self.bounds.size.height))
            context.addLine(to: CGPoint(x: bounds.width, y: bounds.height))
            context.strokePath()
        }
        
    }
    
}

        self.textField.keyboardType = .emailAddress
        self.textField.autocorrectionType = .no
        self.textField.autocapitalizationType = .none
        self.textField.myDelegate = self
        //self.additionalTextFieldYOffset = 0.0
        self.additionalTextFieldYOffset = 1.5
        self.textField.addTarget(self, action: #selector(CLTokenInputView.onTextFieldDidChange(sender:)), for: .editingChanged)
