Use an NSPressureConfiguration object to configure the behavior and progression of a Force Touch trackpad when it responds to a mouse drag or pressure event sequence. Pressure configurations are assigned to views (NSView) and gesture recognizers (NSGestureRecognizer).


Creating a Pressure Configuration Object

init(pressureBehavior: NSPressureBehavior)

Initializes a pressure configuration object with a specified pressure behavior.

func set()

Changes the pressure configuration of the trackpad to the initialized pressure configuration.

Accessing Pressure Configuration Object Properties

var pressureBehavior: NSPressureBehavior

The pressure behavior of the pressure configuration object.


Inherits From

Conforms To