---
title: NSViewControllerType
framework: swiftui
role: symbol
role_heading: Associated Type
path: swiftui/nsviewcontrollerrepresentable/nsviewcontrollertype
---

# NSViewControllerType

The type of view controller to present.

## Declaration

```swift
associatedtype NSViewControllerType : NSViewController
```

## See Also

### Creating and updating the view controller

- [makeNSViewController(context:)](swiftui/nsviewcontrollerrepresentable/makensviewcontroller(context:).md)
- [updateNSViewController(_:context:)](swiftui/nsviewcontrollerrepresentable/updatensviewcontroller(_:context:).md)
- [NSViewControllerRepresentable.Context](swiftui/nsviewcontrollerrepresentable/context.md)
