TechnologiesCommunication, Contacts & Messaging

SharedWithYou

iOSmacOStvOSwatchOSvisionOS

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.

  • Cl
    SWHighlightCentermacOS 13.0+
    @class SWHighlightCenter
  • Pr
    SWHighlightCenterDelegate
    @protocol SWHighlightCenterDelegate
  • Cl
    SWHighlightmacOS 13.0+
    @class SWHighlight
  • Cl
    SWCollaborationHighlightmacOS 13.0+
    @class SWCollaborationHighlight

Highlight Events 5

Track changes, membership, mentions, and persistence for shared highlights.

  • Pr
    SWHighlightEventmacOS 13.0+
    @protocol SWHighlightEvent
  • Cl
    SWHighlightChangeEventmacOS 13.0+
    @class SWHighlightChangeEvent
  • Cl
    SWHighlightMembershipEventmacOS 13.0+
    @class SWHighlightMembershipEvent
  • Cl
    SWHighlightMentionEventmacOS 13.0+
    @class _SWHighlightMentionEvent
  • Cl
    SWHighlightPersistenceEventmacOS 13.0+
    @class SWHighlightPersistenceEvent

Event Triggers 3

Constants that identify what caused a highlight event to occur.

  • En
    SWHighlightChangeEventTriggermacOS 13.0+
    Constants that specify what caused a highlight change event.
  • En
    SWHighlightMembershipEventTriggermacOS 13.0+
    Constants that specify what caused a highlight membership event.
  • En
    SWHighlightPersistenceEventTriggermacOS 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.

  • Cl
    SWAttributionViewmacOS 13.0+
    A view that credits the person who shared an item with the user.
  • Cl
    SWCollaborationViewmacOS 13.0+
    A view that exposes collaboration highlights and controls for shared content.
  • Pr
    SWCollaborationViewDelegatemacOS 13.0+
    A protocol for responding to interactions with a collaboration view.

Participant Management 1

Coordinate removing people from a shared collaboration.

  • Cl
    SWRemoveParticipantAlertmacOS 13.0+
    An alert that confirms removing a participant from a shared collaboration.

Errors 1

Codes that describe failures reported by the highlight center.

  • En
    SWHighlightCenterErrorCodemacOS 13.0+
    Constants that identify errors reported by the highlight center.

Extends 3

SWCollaborationMetadataNSPasteboardItemNSPasteboard
← Communication, Contacts & Messaging