title: SWIFT how to play sound when screen is touched
body: <p>How do i play sound whenever screen is taped? this is a code I have now, where I check if screen has been touched and than it does some things...</p>
  
  <pre><code>override func touchesBegan(touches: Set&lt;UITouch&gt;, withEvent event: UIEvent?) {
  
      if TapsValid == true {
          Score++
  
          if BallRight == true {
  
              BallChange = false
  
          } else {
  
              BallChange = true
  
          }
  
      }
  }
  </code></pre>