---
title: defaultAttachmentScaling
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nslayoutmanager/defaultattachmentscaling
---

# defaultAttachmentScaling

The default amount of scaling to apply when an attachment image is too large to fit in a text container.

## Declaration

```swift
var defaultAttachmentScaling: NSImageScaling { get set }
```

## Discussion

Discussion Attachment cells control their own size and drawing, so this setting is only advisory to them, but Application Kit–supplied attachment cells respect it.

## See Also

### Managing attachments

- [showAttachmentCell(_:in:characterIndex:)](appkit/nslayoutmanager/showattachmentcell(_:in:characterindex:).md)
