[AttachmentInfo]

  • Indicates whether any attachment in the array is currently uploading.

    Declaration

    Swift

    var isUploading: Bool { get }

    Return Value

    true if at least one attachment is in .uploading state, false otherwise

  • Indicates whether any attachment in the array has an error.

    Declaration

    Swift

    var hasError: Bool { get }

    Return Value

    true if at least one attachment is in .error state, false otherwise

  • Determines if the number of successfully uploaded attachments exceeds a specified count.

    Declaration

    Swift

    func hasAttachmentsMoreThan(_ count: Int) -> Bool

    Parameters

    count

    The threshold count to compare against

    Return Value

    true if the number of uploaded attachments is greater than the specified count

  • Finds the index of the first uploaded attachment with the specified destination URL.

    Declaration

    Swift

    func firstIndexOfUploaded(destinationURL: URL) -> Int?

    Parameters

    destinationURL

    The destination URL to search for

    Return Value

    The index of the first matching attachment, or nil if not found