ShareSheet / ShareLink - Sharing multiple Images with Captions

Hi all,

I am fairly new to swift and I am trying to share multiple images with captions via ShareLink or ShareSheet / ActivityView.

  • I was able to create a PDF with the images and captions in it and share that (PDFKit and ActivityView).
  • I was able to share multiple images without captions (ShareLink, multiple Items as type Image with a ProxyRepresentation for Image).
  • I was able to share multiple Images and caption detached from each other (it first shows the captions, then the images, I cannot determine the order and mix and match the two; this was achieved with SHareLink and multiple Text and Image Items).

What I was not able to achieve was to create a share of multiple Images with captions. Say I whant to share as text message or email: Then it should just inject:

Image 1
Caption 1

Image 2
Caption 2
etc…

I have tried different formats such as rtf, rtfd, markdown, html, attributedstring nsattributedstring etc. Nothing seems to work. Does anyone have any pointer to lead me in the right direction?