iPhone SwiftUI layouts
Explore SwiftUI APIs, components, and modifiers with interactive iPhone previews, Swift code, and Apple documentation. Compare every available orientation, appearance, and design.
201elements
Link
Link
A control for navigating to a URL
Explore Link on iPhone in portrait, with SwiftUI code and Apple API documentation.
SwiftUI code
Link("Explore SwiftUI", destination: URL(string: "https://exploreswiftui.com")!)
.environment(\.openURL, OpenURLAction { url in
print("Open \(url)")
return .handled
})Compatibility
iOS 14.0+ iPadOS 14.0+ macOS 11.0+ watchOS 7.0+ tvOS 14.0+ visionOS 1.0+
Tags
Found an issue or have a suggestion?
All variants
Every available iPhone screenshot for Link.