iOS 9.0 added new property force on UITouch class. For new iPhones (6S) this enables to get value of user's finger presure.
The value of force property seems to be set between 0 and 6.66667.
Also iOS 9 added peek and pop feature - when a user aplies certain finger presure level on some controls, programed action is triggered.
My question is: What are these presure levels (for peek and pop) in terms of value of the force property of UITouch?
In another words, to what value do I need to set threshold for the force property for the user to be required to apply the same finger pressure level as when they use 'peek' (or pop) feature?
You can try to observe the
forcevalue by using the below function. It seems that for a peek theforcevalue is 1.33 (normalized force = 0.20) and for a pop theforcevalue is 5.0 (normalized force = 0.75.) At the peekforcelevel, it triggers theUIViewControllerPreviewingDelegatemethod(UIViewController *)previewingContext:(id<UIViewControllerPreviewing>)previewingContext viewControllerForLocation:(CGPoint)locationfor peek.