Learn-iOS-Swift-by-Examples/ForceTouchCatalog
Liu Lantao d16de83c51 ForceTouchCatalog: Version 1.2, 2016-09-28
Updated to Swift 3

Demonstrates how to use the Force Touch Trackpad APIs. This sample is divided into three levels of mastery through which you’ll learn how to process pressure events, perform spring loading, configure the trackpad, and perform feedback.
2016-12-24 12:01:02 +08:00
..
ForceTouchCatalog ForceTouchCatalog: Version 1.2, 2016-09-28 2016-12-24 12:01:02 +08:00
ForceTouchCatalog.xcodeproj ForceTouchCatalog: Version 1.2, 2016-09-28 2016-12-24 12:01:02 +08:00
LICENSE.txt ForceTouchCatalog: Version 1.2, 2016-09-28 2016-12-24 12:01:02 +08:00
README.md ForceTouchCatalog: Version 1.2, 2016-09-28 2016-12-24 12:01:02 +08:00

README.md

ForceTouchCatalog: Using the Force Touch Trackpad API

Demonstrates how to use the Force Touch Trackpad APIs. This sample is divided into three levels of mastery through which youll learn how to process pressure events, perform spring loading, configure the trackpad, and perform feedback.

Structure

Squire: Accelerator and Multi-Level Accelerator buttons. Drag and Drop spring loaded buttons.

Knight: A drawing view that uses the new pressure event in its tracking loop to change the size of the brush.

Master: Modified drawing view that configures the trackpad to not force click and provide a better pressure mapping for drawing purposes. Also, provides an example of how to manually perform haptic feedback on the Force Touch trackpad when an image is rotated to 0 degrees.

Requirements

Build

Xcode 8.0, OS X 10.11

Runtime

OS X 10.11

Copyright (C) 2016 Apple Inc. All rights reserved.