Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Apple docs
Data displayApple

Attachment list

Group attachments in one framed list.

Public APILumenAttachmentListApple / SwiftUISwift product: LumenUI

Apple availability

Supported native targets

Import LumenUI in the target that uses this component. iPad support follows the iOS package baseline and uses native iPad layout behavior.

iPhone · iOS 16+iPad · iPadOS 16+Mac · macOS 13+Apple TV · tvOS 16+Apple Vision · visionOS 1+Apple Watch · watchOS 9+

Native example

Use Attachment list

Use it for message or form attachments.

Attachment list rendered in the iPhone simulator Lumen playground
Captured exampleiPhone simulatorView dark appearance
swift
import LumenUI
import SwiftUI

struct AttachmentListExample: View {
    var body: some View {
        LumenAttachmentList("Project files") {
            LumenAttachment("Brand guidelines.pdf", meta: "PDF · 8.1 MB", action: {}) {
                LumenIconButton(name: .download, label: "Download Brand guidelines.pdf", size: .sm) {}
            }
            LumenAttachment("Hero image.png", meta: "Uploading · 32%", icon: .image, busy: true)
            LumenAttachment("Release notes.md", meta: "Markdown · 12 KB", icon: .fileText)
        }
    }
}
Apple
Three project files in one framed list separated by hairline dividers.

Reference

Public API

The primary shared and platform-specific options exposed by LumenAttachmentList.

APIValues or typeDefaultDescription
label / attachmentslist name / rowsrequired / requiredUse it for message or form attachments.

Native behavior

Design and accessibility

When to use it

Use it for message or form attachments.

Accessibility

Named list; each row keeps its own actions.

Shared component

Available on other platforms

React NativeAndroid / Compose Web
Apple docsSwiftUI package