---
title: "init(_:including:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/attributedstring/init(_:including:)-6u3ho"
---

# init(_:including:)

Creates an attributed string from another attributed string, including an attribute scope.

## Declaration

```swift
init<S, T>(_ other: T, including scope: S.Type) where S : AttributeScope, T : AttributedStringProtocol
```

## Parameters

- `other`: An attributed string or attributed substring.
- `scope`: An attribute scope to associate with the attributed string.

## See Also

### Creating a Duplicate Attributed String

- [init(_:including:)](foundation/attributedstring/init(_:including:)-9ejyj.md)
