---
title: representativeItem
framework: mediaplayer
role: symbol
role_heading: Instance Property
path: mediaplayer/mpmediaitemcollection/representativeitem
---

# representativeItem

A media item whose properties are representative of the other media items in a collection.

## Declaration

```swift
var representativeItem: MPMediaItem? { get }
```

## Discussion

Discussion The media items in a collection typically share common property values, owing to how you built the collection. For example, if you build a collection based on a predicate that uses the MPMediaItemPropertyArtist property, all items in the collection share the same artist name. You can use the representativeItem property to efficiently obtain values for such common properties—often more efficiently than fetching an item from the items array.

## See Also

### Using a media item collection

- [items](mediaplayer/mpmediaitemcollection/items.md)
- [count](mediaplayer/mpmediaitemcollection/count.md)
- [mediaTypes](mediaplayer/mpmediaitemcollection/mediatypes.md)
