---
title: "appending(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextsuggestionsdelegate/appending(_:)-1gb8y"
---

# appending(_:)

Returns a new text suggestions delegate of the same suggestion item type with the items and behaviors of the receiving delegate and other concatenated. When the returned delegate is connected to a text field, all suggestion items provided from the first suggestions delegate appear before all those from the second suggestions delegate, visually separated by a separator.

## Declaration

```swift
@MainActor func appending(_ other: some NSTextSuggestionsDelegate<Self.SuggestionItemType>) -> some NSTextSuggestionsDelegate<Self.SuggestionItemType>

```

## Discussion

Discussion note: The returned aggregate text suggestions delegate strongly retains the given text suggestions delegate (other).
