---
title: "desktopImageOptions(for:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsworkspace/desktopimageoptions(for:)"
---

# desktopImageOptions(for:)

Returns the desktop image options for the given screen.

## Declaration

```swift
func desktopImageOptions(for screen: NSScreen) -> [NSWorkspace.DesktopImageOptionKey : Any]?
```

## Parameters

- `screen`: The screen for which to get the desktop image options.

## Return Value

Return Value A dictionary containing the keys found in NSWorkspace.DesktopImageOptionKey.

## Discussion

Discussion You must call this method from your app’s main thread.

## See Also

### Managing the Desktop Image

- [desktopImageURL(for:)](appkit/nsworkspace/desktopimageurl(for:).md)
- [setDesktopImageURL(_:for:options:)](appkit/nsworkspace/setdesktopimageurl(_:for:options:).md)
- [NSWorkspace.DesktopImageOptionKey](appkit/nsworkspace/desktopimageoptionkey.md)
