---
title: numberOfSlideshowItems()
framework: quartz
role: symbol
role_heading: Instance Method
path: quartz/ikslideshowdatasource/numberofslideshowitems()
---

# numberOfSlideshowItems()

Returns the number of items in a slideshow.

## Declaration

```swift
func numberOfSlideshowItems() -> Int
```

## Return Value

Return Value The number of items in the slideshow.

## Discussion

Discussion Your data source must implement this method.

## See Also

### Providing Slideshow Information

- [slideshowItem(at:)](quartz/ikslideshowdatasource/slideshowitem(at:).md)
- [nameOfSlideshowItem(at:)](quartz/ikslideshowdatasource/nameofslideshowitem(at:).md)
- [canExportSlideshowItem(at:toApplication:)](quartz/ikslideshowdatasource/canexportslideshowitem(at:toapplication:).md)
