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

# lines

The lines of text in the buffer, including line endings.

## Declaration

```swift
var lines: NSMutableArray { get }
```

## Discussion

Discussion Line breaks within a single buffer should be consistent. Adding a line containing additional line breaks modifies the array such that each line added is a separate element. Changes to the completeBuffer property are immediately reflected in this property, and vice versa.

## See Also

### Editing Source Text

- [selections](xcodekit/xcsourcetextbuffer/selections.md)
