<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Virtualization",
  "identifier" : "/documentation/Virtualization/VZVirtualMachineView",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Virtualization"
    ],
    "preciseIdentifier" : "c:objc(cs)VZVirtualMachineView"
  },
  "title" : "VZVirtualMachineView"
}
-->

# VZVirtualMachineView

A view that allows user interaction with a VM.

```
class VZVirtualMachineView
```

## Overview

The `VZVirtualMachineView` is a UI element that shows the contents of the VM frame buffer that you can optionally configure to respond to changes in the host’s display settings. If the VM configuration includes a keyboard and a pointing device, the view forwards keyboard and mouse events to the VM through those devices.

For a <doc://com.apple.documentation/documentation/Swift/Sendable> wrapper that connects a virtual machine view to a virtual machine, see [`VZVirtualMachineViewAdaptor`](/documentation/Virtualization/VZVirtualMachineViewAdaptor).

## Topics

### Configuring a view adaptor

[`adaptor`](/documentation/Virtualization/VZVirtualMachineView/adaptor)

The virtual machine view adaptor.

### Configuring the VM

[`automaticallyReconfiguresDisplay`](/documentation/Virtualization/VZVirtualMachineView/automaticallyReconfiguresDisplay)

A Boolean value that indicates whether the graphics display associated with this view automatically reconfigures with respect to view changes.

[`capturesSystemKeys`](/documentation/Virtualization/VZVirtualMachineView/capturesSystemKeys)

A Boolean value that determines whether the system should send certain system keyboard shortcuts to the guest instead of the host.

[`virtualMachine`](/documentation/Virtualization/VZVirtualMachineView/virtualMachine)

The VM to display in the view.

## Relationships

### Conforms To

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSDraggingDestination`](/documentation/AppKit/NSDraggingDestination)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSAccessibilityElementProtocol`](/documentation/AppKit/NSAccessibilityElementProtocol)

[`NSAppearanceCustomization`](/documentation/AppKit/NSAppearanceCustomization)

[`NSAnimatablePropertyContainer`](/documentation/AppKit/NSAnimatablePropertyContainer)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSUserActivityRestoring`](/documentation/AppKit/NSUserActivityRestoring)

[`NSAccessibilityProtocol`](/documentation/AppKit/NSAccessibilityProtocol)

[`NSStandardKeyBindingResponding`](/documentation/AppKit/NSStandardKeyBindingResponding)

[`NSUserInterfaceItemIdentification`](/documentation/AppKit/NSUserInterfaceItemIdentification)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSTouchBarProvider`](/documentation/AppKit/NSTouchBarProvider)

### Inherits From

[`NSView`](/documentation/AppKit/NSView)

---

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)