---
title: "init(_:image:content:)"
framework: widgetkit
role: symbol
role_heading: Initializer
path: "widgetkit/accessorywidgetgroup/init(_:image:content:)-66iys"
---

# init(_:image:content:)

Creates an AccessoryWidgetGroup that generates its label from a string and image resource.

## Declaration

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

## Parameters

- `title`: A string for the label of AccessoryWidgetGroup.
- `image`: The image resource to lookup.
- `content`: A view builder for the content of the accessory group.

## Discussion

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