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
)
-
Undocumented
Declaration
Swift
public init(@ViewBuilder attachmentErrorTitle: () -> any View, attachmentInfo: AttachmentInfo, onPreview: ((AttachmentInfo) -> Void)? = nil, onDelete: ((AttachmentInfo) -> Void)? = nil, componentIdentifier: String? = AttachmentWithError.identifier) -
Undocumented
Declaration
Swift
static let identifier: String -
Undocumented
Declaration
Swift
init(attachmentErrorTitle: AttributedString, attachmentInfo: AttachmentInfo, onPreview: ((AttachmentInfo) -> Void)? = nil, onDelete: ((AttachmentInfo) -> Void)? = nil) -
Undocumented
Declaration
Swift
init(_ configuration: AttachmentWithErrorConfiguration) -
Declaration
Swift
@MainActor public var body: some View { get } -
Undocumented
Declaration
Swift
public var isEmpty: Bool { get }