<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/AttributedEntityIdentifier",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:21AppIntentsTypeSupport26AttributedEntityIdentifierV"
  },
  "title" : "AttributedEntityIdentifier"
}
-->

# AttributedEntityIdentifier

A unique identifier for an app entity instance within an application.

```
struct AttributedEntityIdentifier
```

## Overview

`AttributedEntityIdentifier` combines type and instance information to create a complete
identifier that can uniquely identify any app entity instance. This identifier
consists of two parts:

1. An entity type identifier that distinguishes different kinds of entities
2. An instance identifier that distinguishes individual instances of the same type

This structure enables the AppIntents framework to reference and retrieve specific
entity instances across the system.

## Topics

### Initializers

[`init(entityType: AttributedTypeIdentifier, instanceIdentifier: String)`](/documentation/AppIntents/AttributedEntityIdentifier/init(entityType:instanceIdentifier:))

Creates an attributed entity identifier with the specified type and instance identifiers.

### Instance Properties

[`let entityType: AttributedTypeIdentifier`](/documentation/AppIntents/AttributedEntityIdentifier/entityType)

The type identifier that defines what kind of entity this is.

[`let instanceIdentifier: String`](/documentation/AppIntents/AttributedEntityIdentifier/instanceIdentifier)

The string that uniquely identifies this specific entity instance.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)