<!--
{
  "availability" : [
    "macOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Quartz",
  "identifier" : "/documentation/Quartz/IKSlideshowDataSource/slideshowItem(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Quartz"
    ],
    "preciseIdentifier" : "c:objc(pl)IKSlideshowDataSource(im)slideshowItemAtIndex:"
  },
  "title" : "slideshowItem(at:)"
}
-->

# slideshowItem(at:)

Returns the item for a given index

```
func slideshowItem(at index: Int) -> Any!
```

## Parameters

`index`

An index of an item in the slideshow.

## Return Value

The object that corresponds to the item at the specified index. The item can be any of the following objects: <doc://com.apple.documentation/documentation/AppKit/NSImage>, <doc://com.apple.documentation/documentation/Foundation/NSString> (to specify a path name), <doc://com.apple.documentation/documentation/Foundation/NSURL>, <doc://com.apple.documentation/documentation/Foundation/FileWrapper>, <doc://com.apple.documentation/documentation/CoreGraphics/CGImage>, or <doc://com.apple.documentation/documentation/PDFKit/PDFPage>.

## Discussion

Your data source must implement this method.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)