---
title: textContainerInset
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextview/textcontainerinset
---

# textContainerInset

The inset of the text container’s layout area within the text view’s content area.

## Declaration

```swift
var textContainerInset: UIEdgeInsets { get set }
```

## Discussion

Discussion This property provides text margins for text laid out in the text view. By default the value of this property is (8, 0, 8, 0).

## See Also

### Configuring layout attributes

- [usesStandardTextScaling](uikit/uitextview/usesstandardtextscaling.md)
- [sizingRule](uikit/uiletterformawareadjusting/sizingrule.md)
