---
title: "add(_:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfselection/add(_:)-8c2r"
---

# add(_:)

Adds the specified selection to the receiving selection.

## Declaration

```swift
func add(_ selection: PDFSelection)
```

## Discussion

Discussion Selections do not have to be contiguous. If the selection to be added overlaps with the receiving selection, the overlap is removed in a process called normalization.

## See Also

### Modifying a Selection

- [add(_:)](pdfkit/pdfselection/add(_:)-3fyld.md)
- [extend(atEnd:)](pdfkit/pdfselection/extend(atend:).md)
- [extend(atStart:)](pdfkit/pdfselection/extend(atstart:).md)
