Join Tammy Coron for an in-depth discussion in this video UITouch force properties, part of iOS 9 3D Touch Quick Start.
- [Voiceover] There are two new properties available…with UITouch Objects.…They are both related to what's known as Force Properties.…The Force Properties can be used to detect…the touch pressure being applied.…Let's take a look at these two properties now.…The first property is force.…This is a read-only number that represents…the pressure of a touch.…A value of 1.0 represents an average touch.…The next property is maximumPossibleForce.…This is also a read-only value.…
It represents the highest possible force for a touch.…This number is set high to accommodate…a wide range of sensitivity.…Together, these values can do some incredible things,…for example, you can create a drawing app…that uses the touch pressure to determine…the stroke size of a brush.…The lighter the touch, the thinner the stroke.…
In this course, Tammy Coron walks through the 3D Touch API. She shows how to add static and dynamic quick actions, which allow you to display shortcuts for app-specific tasks. She also covers peek—for displaying live previews of items—and pop, which opens a detailed version of the peek view. Last but not least, she shows how to implement custom actions using UITouch's new properties: force and maximumPossibleForce.
- Accessibility and 3D Touch
- Checking for 3D Touch availability
- Understanding static vs. dynamic actions
- Working with peek and pop views
- Working with UITouch objects