<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.13.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDrawerDelegate/drawerWillClose(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSDrawerDelegate(im)drawerWillClose:"
  },
  "title" : "drawerWillClose(_:)"
}
-->

# drawerWillClose(_:)

Notifies the delegate the drawer will close.

```
optional func drawerWillClose(_ notification: Notification)
```

## Parameters

`notification`

An [`NSDrawerDelegate`](/documentation/AppKit/NSDrawerDelegate) notification sent by the default notification center immediately before the drawer is closed.

## Discussion

---

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)