---
title: "init(entityType:instanceIdentifier:)"
framework: appintents
role: symbol
role_heading: Initializer
path: "appintents/appentityidentifier/init(entitytype:instanceidentifier:)"
---

# init(entityType:instanceIdentifier:)

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

## Declaration

```swift
init(entityType: AttributedTypeIdentifier, instanceIdentifier: String)
```

## Parameters

- `entityType`: The type identifier for this entity.
- `instanceIdentifier`: The string that uniquely identifies this specific instance.
