<!--
{
  "availability" : [
    "macOS: 26.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTitlebarAccessoryViewController/preferredScrollEdgeEffectStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTitlebarAccessoryViewController(py)preferredScrollEdgeEffectStyle"
  },
  "title" : "preferredScrollEdgeEffectStyle"
}
-->

# preferredScrollEdgeEffectStyle

The titlebar accessory’s preferred effect for content scrolling behind it.

```
var preferredScrollEdgeEffectStyle: NSScrollEdgeEffectStyle { get set }
```

## Discussion

To allow for a soft edge on the bottom edge of a titlebar accessory:

```
titlebarAccessoryViewController.preferredScrollEdgeEffectStyle = NSScrollEdgeEffectStyle.softStyle;
```

---

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)