Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Apple docs
ActionsApple

Link

Open an Apple URL using native SwiftUI behavior and Lumen semantic styling.

Public APILumenLinkApple / 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 Link

Use for external or system URL actions that need Lumen semantic treatment. Keep in-app routing and URL policy in application code.

Link rendered in the iPhone simulator Lumen playground
Verified runtime captureiPhone simulator
swift
LumenLink(
    "Read privacy policy",
    destination: privacyPolicyURL,
    showsExternalIndicator: true
)

Reference

Public API

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

APIValues or typeDefaultDescription
labelLocalizedStringKey or custom ViewRequiredProvides visible link content.
destinationURLRequiredProvides the native URL destination.
showsExternalIndicatorBoolfalseAdds a decorative external-destination symbol without changing the accessible label.

Native behavior

Design and accessibility

When to use it

Use for external or system URL actions that need Lumen semantic treatment. Keep in-app routing and URL policy in application code.

Accessibility

SwiftUI preserves the native link role, visible label, keyboard focus, disabled state, and URL-opening behavior.

Apple docsSwiftUI package