---
title: CGWindowSharingType
framework: coregraphics
role: symbol
role_heading: Enumeration
path: coregraphics/cgwindowsharingtype
---

# CGWindowSharingType

The data type used to specify the sharing mode used by a window.

## Declaration

```swift
enum CGWindowSharingType
```

## Overview

Overview This type is used in conjunction with the constants described in Window Sharing Constants.

## Topics

### Constants

- [CGWindowSharingType.none](coregraphics/cgwindowsharingtype/none.md)
- [CGWindowSharingType.readOnly](coregraphics/cgwindowsharingtype/readonly.md)
- [CGWindowSharingType.readWrite](coregraphics/cgwindowsharingtype/readwrite.md)

### Initializers

- [init(rawValue:)](coregraphics/cgwindowsharingtype/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Enumerations

- [CGCaptureOptions](coregraphics/cgcaptureoptions.md)
- [CGColorConversionInfoTransformType](coregraphics/cgcolorconversioninfotransformtype.md)
- [CGColorRenderingIntent](coregraphics/cgcolorrenderingintent.md)
- [CGConfigureOption](coregraphics/cgconfigureoption.md)
- [CGDisplayChangeSummaryFlags](coregraphics/cgdisplaychangesummaryflags.md)
- [CGDisplayStreamFrameStatus](coregraphics/cgdisplaystreamframestatus.md)
- [CGDisplayStreamUpdateRectType](coregraphics/cgdisplaystreamupdaterecttype.md)
- [CGError](coregraphics/cgerror.md)
- [CGEventField](coregraphics/cgeventfield.md)
- [CGEventFilterMask](coregraphics/cgeventfiltermask.md)
- [CGEventFlags](coregraphics/cgeventflags.md)
- [CGEventMouseSubtype](coregraphics/cgeventmousesubtype.md)
- [CGEventSourceStateID](coregraphics/cgeventsourcestateid.md)
- [CGEventSuppressionState](coregraphics/cgeventsuppressionstate.md)
- [CGEventTapLocation](coregraphics/cgeventtaplocation.md)
