Contents

body

The content that your extension provides to the Home app.

Declaration

@ContentBuilder @MainActor var body: Self.Content { get }

Discussion

For example, to provide a configuration view:

var body: some HomeContent {
    HomeAccessoryConfiguration(id: "my-config") {
        ConfigurationFeaturesView()
    }
}

See Also

Providing content