Create a subclass of SKScene for your SpriteKit scene and use that class to write the code to interact with the scene.
Interact with the scene by overriding the touch functions on iOS and the mouse functions on Mac. On iOS you must override touchesBegan. You may also need to override touchesMoved and touchesEnded. On Mac you must override mouseDown. You may also need to override mouseDragged and mouseUp.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: