AttachmentGroup

public struct AttachmentGroup
extension AttachmentGroup: View
extension AttachmentGroup: _ViewEmptyChecking

AttachmentGroup is the UI component for adding, removing, and rendering thumbnails and previews.

Usage

AttachmentGroup(
  title: { Text("Attachements") },
  attachments: self.$attachments,
  maxCount: 5,
  delegate: self.delegate,
  errorMessage: self.$attachmentError,
  operations: {
      AttachmentButtonImage()
          .operationsMenu {
              PhotosPickerMenuItem(filter: [.images])
              FilesPickerMenuItem(filter: [.pdf, .presentation])
          }
      }
 )