AttachmentWithError

public struct AttachmentWithError
extension AttachmentWithError: View
extension AttachmentWithError: _ViewEmptyChecking

AttachmentWithError is the UI component to be used by AttachmentGroup along with AttachmentButtonImage to support error state of failed upload.

Usage

AttachmentWithError(
    attachmentErrorTitle: {
        Text(configuration.attachmentInfo.attachmentName)
    },
    attachmentInfo: configuration.$attachmentInfo,
    onPreview: configuration.onPreview,
    onDelete: configuration.onDelete
)