View in English

  • Apple Developer
    • Get Started

    Explore Get Started

    • Overview
    • Learn
    • Apple Developer Program

    Stay Updated

    • Latest News
    • Hello Developer
    • Platforms

    Explore Platforms

    • Apple Platforms
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store

    Featured

    • Design
    • Distribution
    • Games
    • Accessories
    • Web
    • Home
    • CarPlay
    • Technologies

    Explore Technologies

    • Overview
    • Xcode
    • Swift
    • SwiftUI

    Featured

    • Accessibility
    • App Intents
    • Apple Intelligence
    • Games
    • Machine Learning & AI
    • Security
    • Xcode Cloud
    • Community

    Explore Community

    • Overview
    • Meet with Apple events
    • Community-driven events
    • Developer Forums
    • Open Source

    Featured

    • WWDC
    • Swift Student Challenge
    • Developer Stories
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Centers
    • Documentation

    Explore Documentation

    • Documentation Library
    • Technology Overviews
    • Sample Code
    • Human Interface Guidelines
    • Videos

    Release Notes

    • Featured Updates
    • iOS
    • iPadOS
    • macOS
    • watchOS
    • visionOS
    • tvOS
    • Xcode
    • Downloads

    Explore Downloads

    • All Downloads
    • Operating Systems
    • Applications
    • Design Resources

    Featured

    • Xcode
    • TestFlight
    • Fonts
    • SF Symbols
    • Icon Composer
    • Support

    Explore Support

    • Overview
    • Help Guides
    • Developer Forums
    • Feedback Assistant
    • Contact Us

    Featured

    • Account Help
    • App Review Guidelines
    • App Store Connect Help
    • Upcoming Requirements
    • Agreements and Guidelines
    • System Status
  • Quick Links

    • Events
    • News
    • Forums
    • Sample Code
    • Videos
 

Videos

Abrir menú Cerrar menú
  • Colecciones
  • Todos los videos
  • Información

Más videos

  • Información
  • Código
  • Add Shared with You to your app

    Shared with You helps people easily find content in your app that someone has shared with them in Messages. Learn how you can support Shared with You in your app and continue the messaging experience right with the content. We'll show you how pinning can give implicit Shared with You permission and can elevate content to be automatically shared. We'll also go over how to present Shared with You content in a Shared with You shelf and visually represent shared items with a Shared with You attribution view.

    Recursos

      • Video HD
      • Video SD

    Videos relacionados

    WWDC22

    • Enhance collaboration experiences with Messages
    • Integrate your custom collaboration app with Messages

    WWDC20

    • What's new in Universal Links
  • Buscar este video…
    • 12:06 - Enumerate Shared with You shelf

      // Enumerate Shared with You shelf
      
      class SharedWithYouViewController: UIViewController, SWHighlightCenterDelegate {
          let highlightCenter = SWHighlightCenter()
          
          override func viewDidLoad() {
              super.viewDidLoad()
              highlightCenter.delegate = self
          }
          
          func highlightCenterHighlightsDidChange(_ highlightCenter: SWHighlightCenter) {
              for highlight in highlightCenter.highlights {
                  let highlightURL = highlight.url
                  // Generate a rich preview for the Highlight
              }
          }
      }
    • 13:42 - Setting appearance of Attribution View

      // Setting appearance of Attribution View
      
      let attributionView = SWAttributionView()
      attributionView.highlight = self.highlightCenter.highlights[index]
      attributionView.preferredMaxLayoutWidth = maximumWidthForView
    • 14:36 - Horizontal Alignment for Attribution View

      // Horizontal Alignment for Attribution View
      
      let attributionView = SWAttributionView()
      attributionView.highlight = self.highlightCenter.highlights[index]
      attributionView.preferredMaxLayoutWidth = maximumWidthForView
      attributionView.horizontalAlignment = .leading
    • 15:19 - Display Context for Attribution View

      // Display Context for Attribution View
      
      let attributionView = SWAttributionView()
      attributionView.highlight = self.highlightCenter.highlights[index]
      attributionView.preferredMaxLayoutWidth = maximumWidthForView
      attributionView.horizontalAlignment = .center
      attributionView.displayContext = .summary
    • 17:12 - Add Shared with You Content Menu to your app’s content

      // Add Shared with You Content Menu to your app’s content
      
      let attributionView = SWAttributionView()
      attributionView.highlight = self.highlightCenter.highlights[index]
      attributionView.menuTitleForHideAction = "Remove Item"
      
      let contextMenuConfig = UIContextMenuConfiguration(identifier: nil,previewProvider: nil) { [weak self] _ in
              let additionalMenu = attributionView.supplementalMenu
              // Append additionalMenu items to your content’s menu items
      }

Developer Footer

  • Videos
  • WWDC22
  • Add Shared with You to your app
  • Open Menu Close Menu
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store
    Open Menu Close Menu
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • Icon Composer
    • SF Symbols
    Open Menu Close Menu
    • Accessibility
    • Accessories
    • Apple Intelligence
    • Audio & Video
    • Augmented Reality
    • Business
    • Design
    • Distribution
    • Education
    • Games
    • Health & Fitness
    • In-App Purchase
    • Localization
    • Maps & Location
    • Machine Learning & AI
    • Security
    • Safari & Web
    Open Menu Close Menu
    • Documentation
    • Downloads
    • Sample Code
    • Videos
    Open Menu Close Menu
    • Help Guides & Articles
    • Contact Us
    • Forums
    • Feedback & Bug Reporting
    • System Status
    Open Menu Close Menu
    • Apple Developer
    • App Store Connect
    • Certificates, IDs, & Profiles
    • Feedback Assistant
    Open Menu Close Menu
    • Apple Developer Program
    • Apple Developer Enterprise Program
    • App Store Small Business Program
    • MFi Program
    • Mini Apps Partner Program
    • News Partner Program
    • Video Partner Program
    • Security Bounty Program
    • Security Research Device Program
    Open Menu Close Menu
    • Meet with Apple
    • Apple Developer Centers
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Academies
    • WWDC
    Read the latest news.
    Get the Apple Developer app.
    Copyright © 2026 Apple Inc. All rights reserved.
    Terms of Use Privacy Policy Agreements and Guidelines