I tried different solutions to my problem and didn't come to the right answer, so dear StackOverflow community, please help me! I have GameScene(SKSc ...
I tried different solutions to my problem and didn't come to the right answer, so dear StackOverflow community, please help me! I have GameScene(SKSc ...
I have a SpriteKitNode that I want to move around my scene when I touch it and drag it. I have a touchesBegan method that detects if the particular n ...
Implementing a sort of 'distress call' button which should work as following: User starts application and covers a screen with a palm of a hand ...
I am making a SpriteKit game that has a button node that is at the highest zPosition. I am overriding the touchesBegan function to add functionality t ...
I'm making a camera app using Swift. Currently, I'm working on displaying a yellow square when the user taps a screen to change the focus and exposure ...
I'm presenting a UIView over my ViewController which contains a table view that covers the whole view controller. I want to dismiss the UIView when ta ...
My swift code is attempting to draw a line. As you can see in the gif below. When the the user places a touch point you can the line being drawn a lit ...
My swift code below draws a horiziontal way the horizontal line is at a angle that does not change. Think like a x axis. I want to draw a line in the ...
I want my swift code to draw a straight horiziontal line. Right now it selects a point and the user extends the line anchored in the first point. I ju ...
My swift code's goal is to get every line to only be able to be place at a 90 degree angle. Right now the code has two points a start and end where th ...
I am making a word game. For this I am using SceneKit and adding a SpriteNodes to represent letter tiles. The idea is that when a user clicks on a let ...
I have these buttons on my cameraView that I want to hide when pressing on the view. I got that to work but I want to unhide the buttons when I press ...
I have a touchesBegan method in my AppDelegate. I use it to detect taps in the status bar. I've had it there for a long time and it's worked great. Un ...
I have tableview with custom cells. In custom cell i have View which is Custom UIView class. In this custom UIView class i override touchesBegan and t ...
I have created a simple test project with a single UITextView and the touchesBegan method in the view controller. For some reason, the UITextView is n ...
My code below is only displaying 1 arkit object in the touches began function. I would like the user to be able to display several of the same arkit o ...
I need to implement a functionality in my app that allow the user to select an area in an imageView just touching and dragging. I tried with touchesB ...
Im trying to get the coordinates of various points when touching in a UIView for swift 4. I've seen the other post regarding a similar problem, but th ...
I've been searching on google for this but couldn't find an answer. I want to use TouchesBegan but on a specific view, so that when I press something ...
Changing .delaysTouchesBegan = true to = false USUALLY works in my game, however, every once in awhile it becomes stuck on true and will not switch ba ...