<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIConversationContext",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIConversationContext"
  },
  "title" : "UIConversationContext"
}
-->

# UIConversationContext

A base class that represents a conversation between participants, such as in an email or messaging app.

```
class UIConversationContext
```

## Topics

### Identifying the conversation

[`var threadIdentifier: String`](/documentation/UIKit/UIConversationContext/threadIdentifier)

A string that uniquely identifies a conversation.
This identifier is persistent for the life of the conversation.

### Getting messages from the conversation

[`var entries: [UIConversationContext.Entry]`](/documentation/UIKit/UIConversationContext/entries)

An array of messages in the conversation.

### Getting conversation participants

[`var selfIdentifiers: Set<String>`](/documentation/UIKit/UIConversationContext/selfIdentifiers)

A set of strings that identifies the active person in the conversation on the current device.

[`var responsePrimaryRecipientIdentifiers: Set<String>`](/documentation/UIKit/UIConversationContext/responsePrimaryRecipientIdentifiers)

A dictionary that relates participant identifiers to participant names.

[`var participantNameByIdentifier: [String : PersonNameComponents]`](/documentation/UIKit/UIConversationContext/participantNameByIdentifier)

A dictionary that relates participant identifiers to participant names.

## Relationships

### Conforms To

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

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

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

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

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

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

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Inherited By

[`UIMailConversationContext`](/documentation/UIKit/UIMailConversationContext)

[`UIMessageConversationContext`](/documentation/UIKit/UIMessageConversationContext)

---

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)