---
title: buffer
framework: XcodeKit
role: symbol
role_heading: Instance Property
platforms: [macOS 10.12+]
path: xcodekit/xcsourceeditorcommandinvocation/buffer
---

# buffer

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

## Declaration

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

## See Also

### Responding to Commands

- [commandIdentifier](xcodekit/xcsourceeditorcommandinvocation/commandidentifier.md)
