---
title: "PlaygroundLiveViewRepresentation.viewController(_:)"
framework: playgroundsupport
role: symbol
role_heading: Enumeration Case
path: playgroundsupport/playgroundliveviewrepresentation/viewcontroller-uej
---

# PlaygroundLiveViewRepresentation.viewController(_:)

An AppKit view controller whose view is displayed as the live view.

## Declaration

```swift
case viewController(NSViewController)
```

## Discussion

Discussion This view controller must be the root of a view controller hierarchy (it must not have a parent view controller), and its view must not have a superview.

## See Also

### Displaying AppKit Views

- [PlaygroundLiveViewRepresentation.view(_:)](playgroundsupport/playgroundliveviewrepresentation/view-ues.md)
