---
title: HomeContentID
framework: HomeExtensions
role: symbol
role_heading: Structure
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+]
path: homeextensions/homecontentid
---

# HomeContentID

An identifier for a piece of content that your extension provides.

## Declaration

```swift
struct HomeContentID
```

## Overview

Overview Defining identifiers as constants, instead of using strings, lets you reuse them and avoid typos. For example: extension HomeContentID {     static let batteryGuide: HomeContentID = "battery-guide" }

HomeAccessoryHelpGuide(id: .batteryGuide) {     BatteryGuideView() } You can also use a string literal anywhere an identifier is expected.

## Topics

### Creating a content identifier

- [init(_:)](homeextensions/homecontentid/init(_:).md)

## Relationships

### Conforms To

- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByExtendedGraphemeClusterLiteral](swift/expressiblebyextendedgraphemeclusterliteral.md)
- [ExpressibleByStringLiteral](swift/expressiblebystringliteral.md)
- [ExpressibleByUnicodeScalarLiteral](swift/expressiblebyunicodescalarliteral.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Guides and troubleshooting content

- [HomeContent](homeextensions/homecontent.md)
- [HomeAccessoryHelpGuide](homeextensions/homeaccessoryhelpguide.md)
- [HomeAccessoryTroubleshooting](homeextensions/homeaccessorytroubleshooting.md)
- [GuideStepHostViewController](homeextensions/guidestephostviewcontroller.md)
