0

I have an app that I want to use the apple pencil tilt functionality.

Right now this is what i am doing:

let tilt = UITouch().altitudeAngle
                    
                    print(tilt)
                    
                    
                    lines.append(Line(points: [newPoint], color: selectedColor, lineWidth: tilt))

But when I print tilt, I am always getting 0.0

Am I doing something wrong?

jnpdx
  • 45,847
  • 6
  • 64
  • 94
anish1
  • 27
  • 6

0 Answers0