---
title: viewDidDisappear()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nstitlebaraccessoryviewcontroller/viewdiddisappear()
---

# viewDidDisappear()

Called after the title bar accessory view controller’s view is removed from the window’s view hierarchy.

## Declaration

```swift
func viewDidDisappear()
```

## Discussion

Discussion You can override this method to perform tasks associated with removing the title bar accessory view controller’s view from the window’s view hierarchy—such as releasing resources not needed when the view is not visible or no longer part of the window—but you must call super in your implementation.

## See Also

### Responding to view events

- [viewDidAppear()](appkit/nstitlebaraccessoryviewcontroller/viewdidappear().md)
- [viewWillAppear()](appkit/nstitlebaraccessoryviewcontroller/viewwillappear().md)
