---
title: "init(highlight:mentionedPersonIdentity:)"
framework: sharedwithyou
role: symbol
role_heading: Initializer
path: "sharedwithyou/swhighlightmentionevent/init(highlight:mentionedpersonidentity:)"
---

# init(highlight:mentionedPersonIdentity:)

Creates and initializes a mention event.

## Declaration

```swift
init(highlight: SWHighlight, mentionedPersonIdentity identity: SWPerson.Identity)
```

## Parameters

- `highlight`: The related hightlight for the event.
- `identity`: The SWPersonIdentity of the person the sender mentions.

## See Also

### Creating a mention event

- [init(highlight:mentionedPersonCloudKitShareHandle:)](sharedwithyou/swhighlightmentionevent/init(highlight:mentionedpersoncloudkitsharehandle:).md)
