SWAttributionView
A view that displays the sender who shares a highlight and provides related actions.
Declaration
class SWAttributionViewMentioned in
Overview
The SWAttributionView also allows users to get back to the conversation about the SWHighlight content, and other related actions using a highlightMenu.
Place an SWAttributionView next to the content represented by its SWHighlight. The SWAttributionView displays the names and avatars within the provided horizontal space.
You can constrain this view’s width anchor or set its frame width to control the maximum width of its contents after which truncation may occur. Don’t constrain the view’s height, as the height is dependent on the preferredContentSizeCategory, and the resulting font size. To provide enough vertical space around this view, reference its heightAnchor when using Auto Layout, or its intrinsicContentSize when using manual layout.
Topics
Customizing highlights
backgroundStyledisplayContexthighlighthighlightMenuhorizontalAlignmentmenuTitleForHideActionpreferredMaxLayoutWidthsupplementalMenu