<!--
{
  "availability" : [
    "iOS: 7.0.0 - 9.0.0",
    "iPadOS: 7.0.0 - 9.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "tvOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/NSControlCharacterWhitespaceAction",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@Ea@NSControlCharacterZeroAdvancementAction@NSControlCharacterWhitespaceAction"
  },
  "title" : "NSControlCharacterWhitespaceAction"
}
-->

# NSControlCharacterWhitespaceAction

An action that programmatically changes the white space around the glyph.

```
var NSControlCharacterWhitespaceAction: Int { get }
```

## Discussion

The width for a glyph with this action is determined by the delegate method [`layoutManager(_:boundingBoxForControlGlyphAt:for:proposedLineFragment:glyphPosition:characterIndex:)`](/documentation/UIKit/NSLayoutManagerDelegate/layoutManager(_:boundingBoxForControlGlyphAt:for:proposedLineFragment:glyphPosition:characterIndex:)) if the method is implemented; otherwise, it’s the same as `NSControlCharacterZeroAdvancementAction`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)