---
title: whitespace
framework: uikit
role: symbol
role_heading: Type Property
path: uikit/nslayoutmanager/controlcharacteraction/whitespace
---

# whitespace

An action that adds whitespace.

## Declaration

```swift
static var whitespace: NSLayoutManager.ControlCharacterAction { get }
```

## Discussion

Discussion The width for a glyph with this action is determined by the delegate method layoutManager(_:boundingBoxForControlGlyphAt:for:proposedLineFragment:glyphPosition:characterIndex:) if the method is implemented; otherwise, same as NSControlCharacterZeroAdvancementAction.

## See Also

### Actions

- [containerBreak](uikit/nslayoutmanager/controlcharacteraction/containerbreak.md)
- [horizontalTab](uikit/nslayoutmanager/controlcharacteraction/horizontaltab.md)
- [lineBreak](uikit/nslayoutmanager/controlcharacteraction/linebreak.md)
- [paragraphBreak](uikit/nslayoutmanager/controlcharacteraction/paragraphbreak.md)
- [zeroAdvancement](uikit/nslayoutmanager/controlcharacteraction/zeroadvancement.md)
