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

# add(_:)

Adds the specified array of selections to the receiving selection.

## Declaration

```swift
func add(_ selections: [PDFSelection])
```

## Discussion

Discussion This method provides better performance than multiple calls to addSelection if you need to add several selections to an existing selection. This is because the normalization of the selection (the removal of any overlaps between selections) occurs only once, after all selections have been added.

## See Also

### Related Documentation

- [PDFSelection](pdfkit/pdfselection.md)

### Modifying a Selection

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