---
title: NSWorkspace.DesktopImageOptionKey
framework: appkit
role: symbol
role_heading: Structure
path: appkit/nsworkspace/desktopimageoptionkey
---

# NSWorkspace.DesktopImageOptionKey

Keys that indicate how to display a new desktop image.

## Declaration

```swift
struct DesktopImageOptionKey
```

## Discussion

Discussion Specify the following keys when calling the setDesktopImageURL(_:for:options:) method.

## Topics

### Option Keys

- [imageScaling](appkit/nsworkspace/desktopimageoptionkey/imagescaling.md)
- [allowClipping](appkit/nsworkspace/desktopimageoptionkey/allowclipping.md)
- [fillColor](appkit/nsworkspace/desktopimageoptionkey/fillcolor.md)

### Initializers

- [init(rawValue:)](appkit/nsworkspace/desktopimageoptionkey/init(rawvalue:).md)

## Relationships

### Conforms To

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

## See Also

### Managing the Desktop Image

- [desktopImageURL(for:)](appkit/nsworkspace/desktopimageurl(for:).md)
- [setDesktopImageURL(_:for:options:)](appkit/nsworkspace/setdesktopimageurl(_:for:options:).md)
- [desktopImageOptions(for:)](appkit/nsworkspace/desktopimageoptions(for:).md)
