<!--
{
  "availability" : [
    "macOS: 15.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ImagePlayground",
  "identifier" : "/documentation/ImagePlayground/ImagePlaygroundViewController/viewWillAppear()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Image Playground"
    ],
    "preciseIdentifier" : "c:@M@ImagePlayground@objc(cs)ImagePlaygroundViewController(im)viewWillAppear"
  },
  "title" : "viewWillAppear()"
}
-->

# viewWillAppear()

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

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

## Discussion

The view controller uses this method to configure its interface.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)