---
title: "viewDidDisappear(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiviewcontroller/viewdiddisappear(_:)"
---

# viewDidDisappear(_:)

Notifies the view controller that its view was removed from a view hierarchy.

## Declaration

```swift
func viewDidDisappear(_ animated: Bool)
```

## Parameters

- `animated`: If doc://com.apple.documentation/documentation/Swift/true, the disappearance of the view was animated.

## Mentioned in

Enhancing your app with fluid transitions

## Discussion

Discussion You can override this method to perform additional tasks associated with dismissing or hiding the view. If you override this method, you must call super at some point in your implementation.

## See Also

### Responding to view-related events

- [viewWillAppear(_:)](uikit/uiviewcontroller/viewwillappear(_:).md)
- [viewIsAppearing(_:)](uikit/uiviewcontroller/viewisappearing(_:).md)
- [viewDidAppear(_:)](uikit/uiviewcontroller/viewdidappear(_:).md)
- [viewWillDisappear(_:)](uikit/uiviewcontroller/viewwilldisappear(_:).md)
- [isBeingDismissed](uikit/uiviewcontroller/isbeingdismissed.md)
- [isBeingPresented](uikit/uiviewcontroller/isbeingpresented.md)
- [isMovingFromParent](uikit/uiviewcontroller/ismovingfromparent.md)
- [isMovingToParent](uikit/uiviewcontroller/ismovingtoparent.md)
