---
title: "canRepresent(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nswindow/canrepresent(_:)"
---

# canRepresent(_:)

A Boolean value that indicates if the window and its screen use a color space that can represent the specified display gamut.

## Declaration

```swift
func canRepresent(_ displayGamut: NSDisplayGamut) -> Bool
```

## See Also

### Working with Window Depths

- [bitsPerPixel](appkit/nswindow/depth/bitsperpixel.md)
- [bitsPerSample](appkit/nswindow/depth/bitspersample.md)
- [colorSpaceName](appkit/nswindow/depth/colorspacename.md)
- [numberOfColorComponents](appkit/nscolorspacename/numberofcolorcomponents.md)
- [isPlanar](appkit/nswindow/depth/isplanar.md)
