<!--
{
  "availability" : [
    "macOS: 10.12.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "XcodeKit",
  "identifier" : "/documentation/XcodeKit/XCSourceEditorCommandInvocation/buffer",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "XcodeKit"
    ],
    "preciseIdentifier" : "c:objc(cs)XCSourceEditorCommandInvocation(py)buffer"
  },
  "title" : "buffer"
}
-->

# buffer

The buffer of source text upon which the command can operate.

```
var buffer: XCSourceTextBuffer { get }
```

---

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)