---
title: "postNotice(for:)"
framework: sharedwithyou
role: symbol
role_heading: Instance Method
path: "sharedwithyou/swhighlightcenter/postnotice(for:)"
---

# postNotice(for:)

Posts a specified event to the highlight center for display.

## Declaration

```swift
func postNotice(for event: any SWHighlightEvent)
```

## Parameters

- `event`: The doc://com.apple.sharedwithyou/documentation/SharedWithYou/SWHighlightEvent to add.

## See Also

### Posting highlight events

- [clearNotices(for:)](sharedwithyou/swhighlightcenter/clearnotices(for:).md)
