<!--
{
  "availability" : [
    "macOS: 10.10.3 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSGestureRecognizer/pressureChange(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSGestureRecognizer(im)pressureChangeWithEvent:"
  },
  "title" : "pressureChange(with:)"
}
-->

# pressureChange(with:)

Informs the current object that a pressure change occurred on a system that supports pressure sensitivity.

```
func pressureChange(with event: NSEvent)
```

## Parameters

`event`

An `NSEvent` object encapsulating information about the event that invoked the change in pressure.

## Discussion

This method is invoked automatically in response to user actions. `event` is the event that initiated the change in pressure.

The default implementation of this method does nothing. Use this method to update the state of your gesture recognizer in whatever way is appropriate.

A gesture recognizer monitors events that occur in its view (and any subviews) but does not take part in the responder chain itself. The gesture recognizer receives events before any views do.

## See Also

[`NSEvent`](/documentation/AppKit/NSEvent)

An object that contains information about an input action, such as a mouse click or a key press.



---

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)