NACCWidget

@MainActor
struct NACCWidget : Widget

This builds the view for the displayed widget. It reads the configuration, and generates a view that will be crafted to match the configuration.

  • This is our “kind” tag.

    Declaration

    Swift

    @MainActor
    static let kind: String
  • The configuration is actually a container, with the generated view in it.

    Declaration

    Swift

    @MainActor
    var body: some WidgetConfiguration { get }