title: How do I check for a click on my button using SpriteKit?
body: <p>I created a button, and now I want to check for a click on that button, how do I do this? I am not using any classes in my code. Below is the code I used to create the button.</p>
  
  <pre><code>let startButton = UIButton(type: .system)    
  startButton.frame = CGRect(x: 300, y: 400, width: 50, height: 10)
  startButton.tintColor = .blue
  startButton.setTitle("Next", for:.normal)
  view.addSubview(startButton)
  </code></pre>
  
  <p>I think I need to use the touchesBegan method, but I don't know how to do that properly.</p>
  
  <p>Thank you in advance!</p>