Skip to content

Conversation

@grynspan
Copy link
Contributor

@grynspan grynspan commented Jul 2, 2025

This PR simplifies our image attachment code so that it always requires UTType instead of providing implementations for older Apple platforms. For more information about the UTType API, watch this video. There is a kitty.

Image attachments depend on CGImage and are Apple-specific at this time. Non-Apple image attachment support is a future direction.

Note

Image attachments are an experimental feature.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

This PR simplifies our image attachment code so that it always requires
`UTType` instead of providing implementations for older Apple platforms.

> [!NOTE]
> Image attachments are an experimental feature.
@grynspan grynspan added this to the Swift 6.x (main) milestone Jul 2, 2025
@grynspan grynspan self-assigned this Jul 2, 2025
@grynspan grynspan requested a review from stmontgomery as a code owner July 2, 2025 14:41
@grynspan grynspan added the darwin 🍎 macOS, iOS, watchOS, tvOS, and visionOS support label Jul 2, 2025
@grynspan grynspan added public-api Affects public API attachments/activities 🖇️ Work related to attachments and/or activities labels Jul 2, 2025
@grynspan
Copy link
Contributor Author

grynspan commented Jul 2, 2025

@swift-ci test

@grynspan
Copy link
Contributor Author

grynspan commented Jul 2, 2025

@swift-ci test

@grynspan
Copy link
Contributor Author

grynspan commented Jul 2, 2025

@swift-ci test

@grynspan grynspan requested a review from stmontgomery July 2, 2025 16:42
@grynspan
Copy link
Contributor Author

grynspan commented Jul 2, 2025

@swift-ci test

@grynspan grynspan merged commit 84ed952 into main Jul 2, 2025
3 checks passed
@grynspan grynspan deleted the jgrynspan/attachable-cgimage-uttype-requirement branch July 2, 2025 17:26
@grynspan grynspan added the cross-import-overlays 🍰 Cross-import overlays (Foundation, Core Graphics, etc.) label Jul 2, 2025
@grynspan grynspan added the image-attachments 📸 Work related to image attachments label Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

attachments/activities 🖇️ Work related to attachments and/or activities cross-import-overlays 🍰 Cross-import overlays (Foundation, Core Graphics, etc.) darwin 🍎 macOS, iOS, watchOS, tvOS, and visionOS support image-attachments 📸 Work related to image attachments public-api Affects public API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants