---
title: "init(_:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/attributedstring/init(_:)-8tnoq"
---

# init(_:)

Creates an attributed string from an attributed substring.

## Declaration

```swift
init(_ substring: AttributedSubstring)
```

## Parameters

- `substring`: An attributed substring to create the new attributed string from.

## See Also

### Creating an Attributed String

- [init()](foundation/attributedstring/init().md)
- [init(_:attributes:)](foundation/attributedstring/init(_:attributes:)-2a45h.md)
- [init(_:attributes:)](foundation/attributedstring/init(_:attributes:)-8jqhp.md)
- [init(_:attributes:)](foundation/attributedstring/init(_:attributes:)-8l0iq.md)
- [AttributeContainer](foundation/attributecontainer.md)
