init(_:content:)
Creates an AccessoryWidgetGroup that generates its label from a localized string resource.
Declaration
@MainActor @preconcurrency init(_ titleResource: LocalizedStringResource, @ViewBuilder content: () -> Content)Parameters
- titleResource:
Resource for the
AccessoryWidgetGroup’s localized label. - content:
A view builder for the content of the accessory group.
Discussion
This initializer creates a Text view on your behalf. See Text for more information about localizing strings.