---
title: "init(pressureBehavior:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nspressureconfiguration/init(pressurebehavior:)"
---

# init(pressureBehavior:)

Initializes a pressure configuration object with a specified pressure behavior.

## Declaration

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

## Parameters

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

## Return Value

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

## Discussion

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

### Related Documentation

- [NSEvent.PressureBehavior](appkit/nsevent/pressurebehavior-swift.enum.md)

### Creating a Pressure Configuration Object

- [set()](appkit/nspressureconfiguration/set().md)
