A Swift library for generating link previews (title, description, images) from URLs on Apple platforms.
SwiftLinkPreview is a Swift library that generates link previews by extracting metadata from URLs. It fetches information such as titles, descriptions, images, and videos from web pages, allowing developers to display rich preview cards within their apps. It solves the problem of manually parsing web pages or relying on external APIs for link preview functionality.
iOS, macOS, watchOS, and tvOS developers who need to display link previews in their applications, such as in chat apps, social feeds, or content browsers.
Developers choose SwiftLinkPreview because it's a native Swift solution with no external dependencies, supports all Apple platforms, and offers features like cancellable requests, customizable caching, and automatic URL unshortening.
It makes a preview from an URL, grabbing all the information such as title, relevant texts and images.
Supports iOS, macOS, watchOS, and tvOS, providing a unified native Swift solution across the Apple ecosystem without external dependencies.
Fetches titles, descriptions, images, videos, icons, and prices from URLs, enabling rich preview cards similar to those in messaging apps.
Includes a built-in in-memory cache and allows custom cache implementations via a protocol, optimizing performance for repeated requests.
Supports cancellation of preview requests, which is useful for managing network operations in responsive user interfaces.
The project is archived as of 2025, meaning no future updates, bug fixes, or support, making it risky for new or long-term projects.
Requires setting 'Allow Arbitrary Loads' to YES in Info.plist, which can be a security concern and adds complexity to app configuration.
As noted in the Tips section, not all websites will have their info fetched correctly, leading to incomplete or missing previews that require manual handling.
A handy collection of more than 500 native Swift extensions to boost your productivity.
Strong typed, autocompleted resources like images, fonts and segues in Swift projects
The Objective-C block utilities you always wish you had.
A tool to identify unused code in Swift projects.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.