Instance Method

viewDidAppear(_:)

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

Declaration

func viewDidAppear(_ animated: Bool)

Parameters

animated

If true, the view was added to the window using an animation.

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.

See Also

Responding to View Events

func viewWillAppear(Bool)

Notifies the view controller that its view is about to be added to a view hierarchy.

func viewWillDisappear(Bool)

Notifies the view controller that its view is about to be removed from a view hierarchy.

func viewDidDisappear(Bool)

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

var isBeingDismissed: Bool

A Boolean value indicating whether the view controller is being dismissed.

var isBeingPresented: Bool

A Boolean value indicating whether the view controller is being presented.

var isMovingFromParentViewController: Bool

A Boolean value indicating whether the view controller is being removed from a parent view controller.

var isMovingToParentViewController: Bool

A Boolean value indicating whether the view controller is being moved to a parent view controller.