Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Apple docs
Data displayApple

Icon

Display the complete shared interface and brand catalog, with platform-native escape hatches.

Public APILumenIconApple / 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 Icon

Prefer a generated Lumen name when an interface or brand icon should remain consistent across platforms. Use an SF Symbol, ImageVector, or React Native graphic component when the operating system or product owns the artwork.

Icon rendered in the iPhone simulator Lumen playground
Verified runtime captureiPhone simulator
swift
LumenIcon(
    name: .search,
    size: .md,
    label: "Search"
)

LumenIcon(name: .brandGithub, label: "GitHub")

Apple icon catalog

Choose an icon name

Search the visual catalogs, copy the displayed Lumen name, then use the Apple spelling below. The package includes both catalogs without another native dependency.

Brand icons

Use the platform form .brandGithub. Brand marks retain their Font Awesome attribution and may be protected trademarks.

Browse all brand icon names

Platform or product artwork

Use systemName: "magnifyingglass" when the operating system or your product owns the symbol instead of Lumen.

Reference

Public API

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

APIValues or typeDefaultDescription
name or systemNameLumenIconName or SF Symbol nameExactly one requiredSelects a generated catalog icon or a platform-specific custom graphic.
labelString?nilNames a meaningful icon for assistive technology.
sizesm · md · lgmdUses a 16, 20, or 24 unit icon size.
colorNative colorinkOverrides the semantic icon color.

Native behavior

Design and accessibility

When to use it

Prefer a generated Lumen name when an interface or brand icon should remain consistent across platforms. Use an SF Symbol, ImageVector, or React Native graphic component when the operating system or product owns the artwork.

Accessibility

Standalone icons are decorative when no label or content description is supplied. Meaningful icons require a concise accessible name.

Shared component

Available on other platforms

React NativeAndroid / Compose
Apple docsSwiftUI package