---
title: viewWillAppear()
framework: imageplayground
role: symbol
role_heading: Instance Method
path: imageplayground/imageplaygroundviewcontroller/viewwillappear()
---

# viewWillAppear()

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

## Declaration

```swift
@MainActor @preconcurrency override dynamic func viewWillAppear()
```

## Discussion

Discussion The view controller uses this method to configure its interface.

## See Also

### Managing the view

- [viewDidLoad()](imageplayground/imageplaygroundviewcontroller/viewdidload().md)
- [viewDidDisappear()](imageplayground/imageplaygroundviewcontroller/viewdiddisappear().md)
