<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNText/truncationMode",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNText(py)truncationMode"
  },
  "title" : "truncationMode"
}
-->

# truncationMode

A constant that specifies how SceneKit truncates text that is too long to fit its container.

```
var truncationMode: String { get set }
```

## Discussion

When you define a layout rectangle for the text using its [`containerFrame`](/documentation/SceneKit/SCNText/containerFrame) property, SceneKit uses the [`truncationMode`](/documentation/SceneKit/SCNText/truncationMode) property to determine how to lay out text that does not fit in the layout rectangle. For possible values, see Truncation_modes in <doc://com.apple.documentation/documentation/QuartzCore/CATextLayer>.

The default value of this property is <doc://com.apple.documentation/documentation/QuartzCore/CATextLayerTruncationMode/none>, specifying that SceneKit should not truncate the text. If the [`isWrapped`](/documentation/SceneKit/SCNText/isWrapped) property is <doc://com.apple.documentation/documentation/Swift/true>, SceneKit continues to automatically wrap each line of text beyond the height of the layout rectangle. Otherwise, SceneKit does not display text that would extend beyond the layout rectangle.

---

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)