AlignmentGuides: AppKit Haptic Feedback Filtering using NSAlignmentFeedbackFilter

Last Revision:
Version 1.3, 2017-09-19
Update to Swift 3 and the macOS Sierra SDK
(Full Revision History)
Build Requirements:
Xcode 8.0, macOS 10.12 SDK
Runtime Requirements:
macOS 10.11

Shows how to provide haptic feedback in your app for hardware that supports Force Click. Haptic feedback is useful for many tasks, such as dragging shapes on a canvas. For example, your app could provide haptic feedback to let the user know when the shape is properly aligned. This sample demonstrates how to provide enough information to the system so that extraneous feedback can be suppressed, creating a better user experience.