<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextFormattingCoordinator",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITextFormattingCoordinator"
  },
  "title" : "UITextFormattingCoordinator"
}
-->

# UITextFormattingCoordinator

An object that coordinates text formatting using the standard Mac font panel.

```
@MainActor class UITextFormattingCoordinator
```

## Topics

### Creating a Text-Formatting Coordinator

[`convenience init(for: UIWindowScene)`](/documentation/UIKit/UITextFormattingCoordinator/init(for:))

Creates a text-formatting coordinator for the specified window scene.

[`init(windowScene: UIWindowScene)`](/documentation/UIKit/UITextFormattingCoordinator/init(windowScene:))

Initializes and returns a new text-formatting coordinator for the specified window scene.

### Showing the Font Panel

[`class var isFontPanelVisible: Bool`](/documentation/UIKit/UITextFormattingCoordinator/isFontPanelVisible)

A Boolean value that indicates whether the font panel is visible.

[`class func toggleFontPanel(Any)`](/documentation/UIKit/UITextFormattingCoordinator/toggleFontPanel(_:))

Toggles the visibility of the font panel.

### Configuring the Font Panel

[`func setSelectedAttributes([NSAttributedString.Key : Any], isMultiple: Bool)`](/documentation/UIKit/UITextFormattingCoordinator/setSelectedAttributes(_:isMultiple:))

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

### Applying Updated Text Attributes

[`var delegate: (any UITextFormattingCoordinatorDelegate)?`](/documentation/UIKit/UITextFormattingCoordinator/delegate)

The delegate of the text-formatting coordinator.

[`protocol UITextFormattingCoordinatorDelegate`](/documentation/UIKit/UITextFormattingCoordinatorDelegate)

The methods that delegates of text-formatting coordinators implement to apply font panel settings to the currently selected text.

### Initializers

[`convenience init(forWindowScene: UIWindowScene)`](/documentation/UIKit/UITextFormattingCoordinator/init(forWindowScene:))

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`UIFontPickerViewControllerDelegate`](/documentation/UIKit/UIFontPickerViewControllerDelegate)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`CVarArg`](/documentation/Swift/CVarArg)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)