SkillAgentSearch skills...

LinkPreviews

A SwiftUI wrapper around LPLinkView from the Link Presentation framework by Apple.

Install / Use

/learn @DandyLyons/LinkPreviews
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

LinkPreviews

A simple SwiftUI-friendly wrapper around the Link Presentation framework by Apple.

Usage

import LinkPreviews
LinkPreview(URL("https://www.google.com")!)

LinkPreview(
    URL("https://www.google.com")!,
    onFetchError: { error in
        print(error)
    },
    placeholder: {
        Text("Fetching preview...")
    },
    fallback: { url in
        Text("\(url)")
    }
)

Roadmap

This package has not yet been validated on tvOS, visionOS, macCatalyst. Please create an Issue on GitHub if you find a problem.

Swift 6 Concurrency

A full concurrency audit of this package has not yet been completed. Currently this package uses @preconcurrency import LinkPresentation.

Installation

This package is in beta and is not yet fully released. To use the beta use the beta branch on git.

Related Skills

View on GitHub
GitHub Stars14
CategoryDevelopment
Updated11d ago
Forks0

Languages

Swift

Security Score

75/100

Audited on Mar 17, 2026

No findings