<!--
{
  "availability" : [
    "iOS: 27.2.0 -",
    "iPadOS: 27.2.0 -",
    "macCatalyst: 27.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HomeExtensions",
  "identifier" : "/documentation/HomeExtensions/HomeExtension",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "HomeExtensions"
    ],
    "preciseIdentifier" : "s:14HomeExtensions0A9ExtensionP"
  },
  "title" : "HomeExtension"
}
-->

# HomeExtension

A type that represents an app extension for the Home app.

```
@MainActor protocol HomeExtension
```

## Overview

Create a type that adopts this protocol, mark it with `@main`, and return your content from [`body`](/documentation/HomeExtensions/HomeExtension/body).

## Topics

### Providing content

[`var body: Self.Content`](/documentation/HomeExtensions/HomeExtension/body)

The content that your extension provides to the Home app.

[`associatedtype Content : HomeContent`](/documentation/HomeExtensions/HomeExtension/Content)

The type of content that your extension provides.

### Creating an extension

[`init()`](/documentation/HomeExtensions/HomeExtension/init())

Creates an instance of your extension.

### Starting the extension

[`static func main() throws`](/documentation/HomeExtensions/HomeExtension/main())

Starts your app extension.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)