<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextFormattingViewController/ComponentGroup",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITextFormattingViewControllerComponentGroup"
  },
  "title" : "UITextFormattingViewController.ComponentGroup"
}
-->

# UITextFormattingViewController.ComponentGroup

Defines grouping of text formatting components in view.

```
class ComponentGroup
```

## Topics

### Initializers

[`init?(coder: NSCoder)`](/documentation/UIKit/UITextFormattingViewController/ComponentGroup/init(coder:))

[`init(components: [UITextFormattingViewController.Component])`](/documentation/UIKit/UITextFormattingViewController/ComponentGroup/init(components:))

Creates a group of components.

### Instance Properties

[`var components: [UITextFormattingViewController.Component]`](/documentation/UIKit/UITextFormattingViewController/ComponentGroup/components)

Components in group.

### Type Methods

[`static func group([UITextFormattingViewController.Component]) -> UITextFormattingViewController.ComponentGroup`](/documentation/UIKit/UITextFormattingViewController/ComponentGroup/group(_:))

## Relationships

### Inherits From

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

### Conforms To

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

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

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

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

[`NSCoding`](/documentation/Foundation/NSCoding)

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

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

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSCopying`](/documentation/Foundation/NSCopying)

---

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)