textPasteConfigurationSupporting(_:combineItemAttributedStrings:for:)
Asks the delegate to combine multiple strings into a single attributed string.
Declaration
optional func textPasteConfigurationSupporting(_ textPasteConfigurationSupporting: any UITextPasteConfigurationSupporting, combineItemAttributedStrings itemStrings: [NSAttributedString], for textRange: UITextRange) -> NSAttributedStringParameters
- textPasteConfigurationSupporting:
The object that received the paste or drop request.
- itemStrings:
An array of attributed strings that will be combined to form a single attributed string.
- textRange:
The position in the text view where the paste or drop operation will place the text.
Return Value
An attributed string based on the combination of multiple strings.
Discussion
You implement this method when you need to change how the item strings are combined to form the single attributed string. If this method isn’t implemented, the item strings are concatenated without any delimiters.