<!--
{
  "availability" : [
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WidgetKit",
  "identifier" : "/documentation/WidgetKit/AccessoryWidgetGroup/init(_:content:)-3ij0e",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "WidgetKit"
    ],
    "preciseIdentifier" : "s:9WidgetKit09AccessoryA5GroupVAA7SwiftUI4TextVRszrlE_7contentACyAFq_Gqd___q_yXEtcSyRd__lufc"
  },
  "title" : "init(_:content:)"
}
-->

# init(_:content:)

Creates an `AccessoryWidgetGroup` that generates its label from a string.

```
@MainActor @preconcurrency init(_ title: some StringProtocol, @ViewBuilder content: () -> Content)
```

## Parameters

`title`

A string for the label of `AccessoryWidgetGroup`.

`content`

A view builder for the content of the accessory group.

## Discussion

This initializer creates a `Text` view on your behalf, and treats the
label similar to `Text/init(_:)-9d1g4`. See `Text` for more
information about localizing strings.

---

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)