---
title: preferredPresentationSize
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsitemprovider/preferredpresentationsize
---

# preferredPresentationSize

The ideal presentation size of the item.

## Declaration

```swift
var preferredPresentationSize: CGSize { get set }
```

```swift
var preferredPresentationSize: NSSize { get }
```

## Discussion

Discussion When displaying the item, the value in this property represents the ideal size at which to display the item. The size in this property may differ from the size in the sourceFrame rectangle. For images, video, and other content with a natural size, the item automatically derives the size from that content. If the value in this property is NSZeroSize, use the size specified in the sourceFrame rectangle.

## See Also

### Configuring the provider

- [preferredPresentationStyle](foundation/nsitemprovider/preferredpresentationstyle-swift.property.md)
- [NSItemProvider.PreferredPresentationStyle](foundation/nsitemprovider/preferredpresentationstyle-swift.enum.md)
- [suggestedName](foundation/nsitemprovider/suggestedname.md)
- [teamData](foundation/nsitemprovider/teamdata.md)
