Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
Apple docs
AIApple

Source citation

Link a named source under an answer.

Public APILumenSourceCitationApple / 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 Source citation

Unsafe or relative links render inert text. Route in-app links yourself.

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

struct SourcesExample: View {
    var body: some View {
        HStack(spacing: 8) {
            LumenSourceCitation("Lumen docs", href: "https://lumen.santi020k.com/docs")
            LumenSourceCitation("Internal note", href: nil)
        }
    }
}
Apple
A compact source chip that links only to safe web destinations and stays inert otherwise.

Reference

Public API

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

APIValues or typeDefaultDescription
label / hrefsource name / absolute URLrequired / requiredUnsafe or relative links render inert text.

Native behavior

Design and accessibility

When to use it

Unsafe or relative links render inert text. Route in-app links yourself.

Accessibility

Link role only for safe http and https URLs.

Shared component

Available on other platforms

React NativeAndroid / Compose Web
Apple docsSwiftUI package