Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Apple docs
Data displayApple

Graphic

Frame application-provided artwork with token-aware glow, grid, or orbit decoration.

Public APILumenGraphicApple / 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 Vision · visionOS 1+

Native example

Use Graphic

Use to frame meaningful application artwork with a restrained token-aware preset. Leave the label absent when the surrounding content already communicates the same meaning.

Graphic rendered in the iPhone simulator Lumen playground
Verified runtime captureiPhone simulator
swift
LumenGraphic(
    variant: .orbit,
    label: "Project overview"
) {
    ProjectArtwork()
}

Reference

Public API

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

APIValues or typeDefaultDescription
variantglow · grid · orbitorbitSelects the decorative composition.
sizesm · md · lgmdSelects a shared native dimension.
tonebrand · accent · neutralbrandSelects the semantic decoration color.
labelLocalizedStringKey?nilOptionally exposes the composition as one labeled image.

Native behavior

Design and accessibility

When to use it

Use to frame meaningful application artwork with a restrained token-aware preset. Leave the label absent when the surrounding content already communicates the same meaning.

Accessibility

Decorative graphics stay hidden from assistive technology; an optional label exposes the complete composition as one image.

Shared component

Available on other platforms

React NativeAndroid / Compose
Apple docsSwiftUI package