title: how to use parameter inside the selector Tapgesture
body: <p>Currently I am making pickerDate to interact with TextField.</p>
  
  <pre><code>class ViewController: UIViewController {
      @IBOutlet weak var fromDateFilterTextField: UITextField!
  
      @IBOutlet weak var toDateFilterTextField: UITextField!
      override func viewDidLoad() {
          super.viewDidLoad()
          setupUI()
  
      }
      private func setupUI(){
          fromDateFilterTextField.setInputViewDatePicker(target: self, selector: #selector(tapDone(_:)))
          toDateFilterTextField.setInputViewDatePicker(target: self, selector: #selector(tapDone(_:)))
      }
  
  @objc func tapDone(textField : UITextField) {
  
  }
  
  }
  
  </code></pre>
  
  <pre><code>extension UITextField{
      func setInputViewDatePicker(target : Any , selector : Selector){
          //create a UIDatePicker object and assign to inputView
          let screenWidth = UIScreen.main.bounds.width
          let datePicker = UIDatePicker(frame: CGRect(x: 0, y: 0, width: screenWidth, height: 200))
          datePicker.datePickerMode = .date
          self.inputView = datePicker
  
          //create a toolbar and assign it to inputAccesoryView
          let toolBar = UIToolbar(frame: CGRect(x: 0.0, y: 0.0, width: screenWidth, height: 44.0))
          toolBar.barTintColor = .red
          datePicker.setValue(UIColor.black, forKeyPath: "textColor")
          datePicker.setValue(false, forKeyPath: "highlightsToday")
          datePicker.backgroundColor = .white
  
          let flexible = UIBarButtonItem(barButtonSystemItem: .flexibleSpace, target: nil, action: nil)
          let cancel = UIBarButtonItem(title: "Cancel", style: .plain, target: nil, action: #selector(tapCancel))
          cancel.tintColor = .white
          let barButton = UIBarButtonItem(title: "Done", style: .plain, target: target, action: selector) //7
          barButton.tintColor = .white
          toolBar.setItems([cancel, flexible, barButton], animated: false)
          self.inputAccessoryView = toolBar
      }
      @objc func tapCancel() {
          self.resignFirstResponder()
      }
  }
  </code></pre>
  
  <p>I'd like to pass textfield as parameter of tapDone for reuse the code, because I'd like to update the date of differents textfield using only change the parameters of tapDone.</p>