<!--
{
  "availability" : [
    "macOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Quartz",
  "identifier" : "/documentation/Quartz/IKSlideshow/run(with:inMode:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Quartz"
    ],
    "preciseIdentifier" : "c:objc(cs)IKSlideshow(im)runSlideshowWithDataSource:inMode:options:"
  },
  "title" : "run(with:inMode:options:)"
}
-->

# run(with:inMode:options:)

Runs a slideshow that contains the specified kind of items, provided from a data source.

```
func run(with dataSource: (any IKSlideshowDataSource)!, inMode slideshowMode: String!, options slideshowOptions: [AnyHashable : Any]! = [:])
```

## Parameters

`dataSource`

The data source to use for the slideshow.

`slideshowMode`

A constant that indicate what kind of items are in the slideshow—`IKSlideshowModeImages`, `IKSlideshowModePDF`, or `IKSlideshowModeQuickLook`. See [Slideshow Modes](/documentation/Quartz/slideshow-modes).

`slideshowOptions`

A dictionary of slideshow options. See [Slideshow Option Keys](/documentation/Quartz/slideshow-option-keys).

---

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)