Contents

init(kind:provider:content:)

Creates a configuration for a widget that provides relevance clues to the system.

Declaration

@MainActor @preconcurrency init<Provider>(kind: String, provider: Provider, @ViewBuilder content: @escaping @MainActor (Provider.Entry) -> Content) where Provider : RelevanceEntriesProvider

Parameters

  • kind:

    A unique string that you choose.

  • provider:

    An object that determines the relevance and data of the widget.

  • content:

    A view that renders the widget.