---
title: "setSelectedAttributes(_:isMultiple:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextformattingcoordinator/setselectedattributes(_:ismultiple:)"
---

# setSelectedAttributes(_:isMultiple:)

Configures the initial display state of the font panel with the attributes of the selected text.

## Declaration

```swift
func setSelectedAttributes(_ attributes: [NSAttributedString.Key : Any], isMultiple flag: Bool)
```
