transferable-sharing

Implement SwiftUI Transferable conformances for cross-app drag-and-drop and clipboard sharing.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/bluewaves-creations/bluewaves-skills --skill transferable-sharing
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: transferable-sharing
Source: https://github.com/bluewaves-creations/bluewaves-skills/tree/main/plugins/swift-apple-dev/skills/transferable-sharing
Command: npx skills add https://github.com/bluewaves-creations/bluewaves-skills --skill transferable-sharing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies cross-app data sharing by standardizing SwiftUI's Transferable usage, enabling drag-and-drop, copy-paste, ShareLink, and clipboard interactions across Apple platforms.

Core Features & Use Cases

  • Cross-app data sharing via Transferable conformances for common data types.
  • Multiple transfer representations (Codable, Data, File) to cover common workflows.
  • Use cases include implementing drag-and-drop in lists, seamless copy-paste of custom data, and creating share sheets that transfer structured data between apps.

Quick Start

Define a type that conforms to Transferable and implement a transferRepresentation using CodableRepresentation (or other representations). Then wire it into SwiftUI views using .draggable, .dropDestination, or ShareLink to enable sharing.

Frequently Asked Questions about transferable-sharing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement drag-and-drop and copy-paste in SwiftUI?▼

Drag-and-drop and copy-paste in SwiftUI use the Transferable protocol. Conforming your data types to Transferable and applying .draggable or .dropDestination modifiers enables seamless cross-app data sharing.

What is the Transferable protocol in SwiftUI used for?▼

The Transferable protocol standardizes cross-app data sharing in SwiftUI. It provides a structured way to define transfer representations like Codable, Data, and File for use in drag-and-drop, ShareLink, and clipboard interactions.

How do I share custom data between iOS and macOS apps?▼

Share custom data between iOS and macOS apps by conforming your type to the Transferable protocol. Implement a transferRepresentation using CodableRepresentation and wire it into SwiftUI views with ShareLink.

Can I use multiple transfer representations for a single data type in SwiftUI?▼

Yes, SwiftUI's Transferable protocol supports multiple transfer representations. You can declare Codable, Data, and File representations simultaneously to cover various workflows like drag-and-drop and share sheets.

Does ShareLink work with custom Codable types in SwiftUI?▼

ShareLink works with custom Codable types in SwiftUI by implementing the Transferable protocol. Defining a CodableRepresentation in your transferRepresentation allows structured data to transfer across apps.

What's the best way to transfer structured data across Apple platforms?▼

The best way to transfer structured data across Apple platforms is using SwiftUI's Transferable protocol. It standardizes data sharing for drag-and-drop, copy-paste, and ShareLink interactions across iOS and macOS.