Attachment

public struct Attachment
extension Attachment: View
extension Attachment: _ViewEmptyChecking

Attachment is the UI component to be used by AttachmentGroup along with AttachmentButtonImage to support users’ operation, such as adding a photo or a file and to render attachment list.

Usage

Attachment {
  AttachmentThumbnail(url: fileURL)
} 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")
}