---
title: "playlistDestination(withName:)"
framework: intents
role: symbol
role_heading: Type Method
path: "intents/inmediadestinationreference/playlistdestination(withname:)"
---

# playlistDestination(withName:)

Creates a new playlist destination for the media item.

## Declaration

```swift
class func playlistDestination(withName playlistName: String) -> Self
```

## Return Value

Return Value A new INMediaDestinationReference object or nil if unable to create.

## See Also

### Creating a Media Destination Object

- [library()](intents/inmediadestinationreference/library().md)
