HomeContentID
An identifier for a piece of content that your extension provides.
Declaration
struct HomeContentIDOverview
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.