desktopImageURL(for:)
Returns the URL for the desktop image for the given screen.
Declaration
func desktopImageURL(for screen: NSScreen) -> URL?Parameters
- screen:
The screen for which to get the desktop image.
Return Value
The desktop image.
Discussion
You must call this method from your app’s main thread.