---
title: UNNotificationAttachmentOptionsThumbnailClippingRectKey
framework: usernotifications
role: symbol
role_heading: Global Variable
path: usernotifications/unnotificationattachmentoptionsthumbnailclippingrectkey
---

# UNNotificationAttachmentOptionsThumbnailClippingRectKey

The clipping rectangle for a thumbnail image.

## Declaration

```swift
let UNNotificationAttachmentOptionsThumbnailClippingRectKey: String
```

## Discussion

Discussion The value of this key is a dictionary containing a normalized CGRect — a unit rectangle whose values are in the range 0.0 to 1.0 and represent the portion of the original image that you want to display. For example, specifying an origin of (0.25, 0.25) and a size of (0.5, 0.5) defines a clipping rectangle that shows only the center portion of the image. Use the dictionaryRepresentation function to create the dictionary for your rectangle.

## See Also

### Creating an Attachment

- [init(identifier:url:options:)](usernotifications/unnotificationattachment/init(identifier:url:options:)-83grx.md)
- [UNNotificationAttachmentOptionsTypeHintKey](usernotifications/unnotificationattachmentoptionstypehintkey.md)
- [UNNotificationAttachmentOptionsThumbnailHiddenKey](usernotifications/unnotificationattachmentoptionsthumbnailhiddenkey.md)
- [UNNotificationAttachmentOptionsThumbnailTimeKey](usernotifications/unnotificationattachmentoptionsthumbnailtimekey.md)
