Attachment

public struct Attachment
extension Attachment: View
extension Attachment: _ViewEmptyChecking

Attachment provides thumbnail and information about an attachment.

Usage

Attachment {
  QuickLookThumbnail(physicalUrl: fileURL)
} attachmentTitle: {
  Text("Leaf")
} attachmentSubtitle: {
  Text("15MB")
} attachmentFootnote: {
  Text("Aug 15, 2024")
}

Attachment {
  QuickLookThumbnail(thumbnailImage: : Image(systemName: "leaf"))
} attachmentTitle: {
  Text("Leaf")
} attachmentSubtitle: {
  Text("15MB")
} attachmentFootnote: {
  Text("Aug 15, 2024")
}

Attachment {
  Image(systemName: "leaf")
    .resizable()
} attachmentTitle: {
  Text("Leaf")
} attachmentSubtitle: {
  Text("15MB")
} attachmentFootnote: {
  Text("Aug 15, 2024")
}