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

# viewDidAppear(_:)

Notifies the view controller that its view was added to a view hierarchy.

## Declaration

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

## Parameters

- `animated`: If doc://com.apple.documentation/documentation/Swift/true, the view was added to the window using an animation.

## Mentioned in

Enhancing your app with fluid transitions Displaying and managing views with a view controller Positioning content relative to the safe area

## Discussion

Discussion You can override this method to perform additional tasks associated with presenting the view. If you override this method, you must call super at some point in your implementation. note: If a view controller is presented by a view controller inside of a popover, this method is not invoked on the presenting view controller after the presented controller is dismissed.

## See Also

### Responding to view-related events

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