0

Is it possible to get the force applied to a part of the screen on iOS 9 on the iPhone 6s?

It's possible to access the force attribute of a UITouch instance. Is there some other way?

Larme
  • 24,190
  • 6
  • 51
  • 81
Jeff Huijsmans
  • 1,388
  • 1
  • 14
  • 35

1 Answers1

0

Look in UITouch

// Force of the touch, where 1.0 represents the force of an average touch
@available(iOS 9.0, *)
public var force: CGFloat { get }
// Maximum possible force with this input mechanism
@available(iOS 9.0, *)
public var maximumPossibleForce: CGFloat { get }
katleta3000
  • 2,484
  • 1
  • 18
  • 23