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

            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()
        }
        
    }
    
}

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