Skip to content

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Sep 27, 2025

This PR adjusts Attachment's conformance to CustomStringConvertible such that it conforms even when AttachableValue is not Copyable. We now check at runtime (by way of protocol shenanigans, of course) whether the attachable value is copyable and, if so, take a different code path than we take if it does not conform.

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 adjusts `Attachment`'s conformance to `CustomStringConvertible`
such that it conforms even when `AttachableValue` is not `Copyable`. We
now check at runtime (by way of protocol shenanigans, of course) whether
the attachable value is copyable and, if so, take a different code path
than we take if it does not conform.
@grynspan grynspan added this to the Swift 6.x (main) milestone Sep 27, 2025
@grynspan grynspan self-assigned this Sep 27, 2025
@grynspan grynspan added the enhancement New feature or request label Sep 27, 2025
@grynspan grynspan added public-api Affects public API embedded-swift 📟 Embedded Swift issues attachments/activities 🖇️ Work related to attachments and/or activities labels Sep 27, 2025
@grynspan grynspan closed this Sep 30, 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 embedded-swift 📟 Embedded Swift issues enhancement New feature or request public-api Affects public API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant