title: touchesBegan not working swift 4
body: <p>I created a seperate UIView class to detect the user touch.</p>
  
  <pre><code>class SelectionView: UIView {
  override func touchesBegan(_ touches: Set&lt;UITouch&gt;, with event: UIEvent?) {
      print("touchesBegan")
       }
  
  override func touchesMoved(_ touches: Set&lt;UITouch&gt;, with event: UIEvent?) {
      print("touchesMoved")
       }
  
  override func touchesEnded(_ touches: Set&lt;UITouch&gt;, with event: UIEvent?) {
      print("touchesEnded")
       }
  }
  </code></pre>
  
  <p>then I just took a view and assign SelectionView class to it.</p>
  
  <p>But when i touches or moving on view none of the methods called</p>
  
  <p>I checked many of the previous related questions. But not able to resolve the issue</p>
  
  <p>I checkd:- 
  - user interection is enabled for the view
  - view is on the top </p>