---
title: displayPadding
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/textrenderer/displaypadding
---

# displayPadding

Returns the size of the extra padding added to any drawing layer used to rasterize the text. For example when drawing the text with a shadow this may be used to extend the drawing bounds to avoid clipping the shadow.

## Declaration

```swift
var displayPadding: EdgeInsets { get }
```

## Discussion

Discussion The default implementation of this function returns an empty set of insets.
