<!--
{
  "availability" : [
    "macOS: 10.10.3 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPressureConfiguration/init(pressureBehavior:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPressureConfiguration(im)initWithPressureBehavior:"
  },
  "title" : "init(pressureBehavior:)"
}
-->

# init(pressureBehavior:)

Initializes a pressure configuration object with a specified pressure behavior.

```
init(pressureBehavior: NSEvent.PressureBehavior)
```

## Parameters

`pressureBehavior`

An `NSPressureBehavior` value that describes the behavior and progression for responding to pressure events.

## Return Value

A new pressure configuration object of type `NSPressureConfiguration` that describes how pressure events behave and progress.

## Discussion

The initialized pressure configuration object is used to change the behavior and progression of the trackpad when responding to a mouse drag or pressure event sequence.

## See Also

[`PressureBehavior`](/documentation/AppKit/NSEvent/PressureBehavior-swift.enum)

These constants describe the behavior and progression of a pressure gesture.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)