---
title: "append(contentsOf:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/string/unicodescalarview/append(contentsof:)"
---

# append(contentsOf:)

Appends the Unicode scalar values in the given sequence to the view.

## Declaration

```swift
mutating func append<S>(contentsOf newElements: S) where S : Sequence, S.Element == Unicode.Scalar
```

## Parameters

- `newElements`: A sequence of Unicode scalar values.

## Discussion

Discussion note: O(n), where n is the length of the resulting view.
