---
title: exclusionPaths
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nstextcontainer/exclusionpaths
---

# exclusionPaths

An array of path objects that represents the regions where text doesn’t display in the text container.

## Declaration

```swift
var exclusionPaths: [UIBezierPath] { get set }
```

## Discussion

Discussion The default value of this property is an empty array. Depending on the platform, you can assign an array of NSBezierPath or UIBezierPath objects to exclude text from one or more regions in the text container’s bounds. When the layout manager proposes a line fragment rectangle intersecting one of the regions defined by the exclusion paths, the text container returns an adjusted line fragment rectangle excluding that region.

## See Also

### Related Documentation

- [lineFragmentRect(forProposedRect:at:writingDirection:remaining:)](uikit/nstextcontainer/linefragmentrect(forproposedrect:at:writingdirection:remaining:).md)

### Defining the container shape

- [size](uikit/nstextcontainer/size.md)
- [lineBreakMode](uikit/nstextcontainer/linebreakmode.md)
- [widthTracksTextView](uikit/nstextcontainer/widthtrackstextview.md)
- [heightTracksTextView](uikit/nstextcontainer/heighttrackstextview.md)
