SharedWithYou surfaces content that people have shared with the user in Messages, letting you present collaboration highlights and attribution within your app. You use SWHighlightCenter and its SWHighlightCenterDelegate to receive SWHighlight objects and track change, membership, mention, and persistence events through types such as SWHighlightChangeEvent and SWHighlightMembershipEvent. To display this content, you use views including SWAttributionView for crediting who shared an item and SWCollaborationView, coordinated by SWCollaborationViewDelegate, to expose collaboration highlights. The framework also provides participant management, including SWRemoveParticipantAlert, and is available on iOS, macOS, tvOS, and visionOS.
Highlights 4
Receive and inspect the shared content surfaced from Messages.
- ClSWHighlightCentermacOS 13.0+@class SWHighlightCenter
- PrSWHighlightCenterDelegate@protocol SWHighlightCenterDelegate
- ClSWHighlightmacOS 13.0+@class SWHighlight
- ClSWCollaborationHighlightmacOS 13.0+@class SWCollaborationHighlight
Highlight Events 5
Track changes, membership, mentions, and persistence for shared highlights.
- PrSWHighlightEventmacOS 13.0+@protocol SWHighlightEvent
- ClSWHighlightChangeEventmacOS 13.0+@class SWHighlightChangeEvent
- ClSWHighlightMembershipEventmacOS 13.0+@class SWHighlightMembershipEvent
- ClSWHighlightMentionEventmacOS 13.0+@class _SWHighlightMentionEvent
- ClSWHighlightPersistenceEventmacOS 13.0+@class SWHighlightPersistenceEvent
Event Triggers 3
Constants that identify what caused a highlight event to occur.
- EnSWHighlightChangeEventTriggermacOS 13.0+Constants that specify what caused a highlight change event.
- EnSWHighlightMembershipEventTriggermacOS 13.0+Constants that specify what caused a highlight membership event.
- EnSWHighlightPersistenceEventTriggermacOS 13.0+Constants that specify what caused a highlight persistence event.
Attribution and Collaboration Views 3
Display credit for shared items and expose collaboration controls in your interface.
- ClSWAttributionViewmacOS 13.0+A view that credits the person who shared an item with the user.
- ClSWCollaborationViewmacOS 13.0+A view that exposes collaboration highlights and controls for shared content.
- PrSWCollaborationViewDelegatemacOS 13.0+A protocol for responding to interactions with a collaboration view.
Participant Management 1
Coordinate removing people from a shared collaboration.
- ClSWRemoveParticipantAlertmacOS 13.0+An alert that confirms removing a participant from a shared collaboration.
Errors 1
Codes that describe failures reported by the highlight center.
- EnSWHighlightCenterErrorCodemacOS 13.0+Constants that identify errors reported by the highlight center.