Contents

HomeContext

The context in which the Home app launches your extension, including the selected home and accessory.

Declaration

@MainActor final class HomeContext

Overview

You access the context from the environment with @Environment(\.homeContext). The context is available in the SwiftUI environment while the extension is running.

Topics

Getting context

Working with the navigation stack

Reading extension metadata

Completing configuration

Debugging

See Also

Essentials