Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. iOS
  3. SwiftLinkPreview

SwiftLinkPreview

MITSwift3.4.0

A Swift library for generating link previews (title, description, images) from URLs on Apple platforms.

Visit WebsiteGitHubGitHub
1.4k stars197 forks0 contributors

What is SwiftLinkPreview?

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.

Target Audience

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.

Value Proposition

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.

Overview

It makes a preview from an URL, grabbing all the information such as title, relevant texts and images.

Use Cases

Best For

  • Adding link previews to chat or messaging applications
  • Displaying URL previews in social media or news feed apps
  • Enhancing content browsers with rich metadata displays
  • Building apps that need to show website summaries without full web views
  • Implementing custom cache strategies for link preview data
  • Supporting multiple Apple platforms (iOS, macOS, watchOS, tvOS) with a single library

Not Ideal For

  • Projects requiring ongoing maintenance and updates, as the repository is archived and no longer actively developed.
  • Apps with strict App Transport Security policies that cannot enable 'Allow Arbitrary Loads' for security reasons.
  • Teams looking to integrate AI-powered link analysis for more accurate or contextual previews.
  • Applications needing server-side link preview generation to offload processing from client devices.

Pros & Cons

Pros

Multi-Platform Compatibility

Supports iOS, macOS, watchOS, and tvOS, providing a unified native Swift solution across the Apple ecosystem without external dependencies.

Comprehensive Metadata Extraction

Fetches titles, descriptions, images, videos, icons, and prices from URLs, enabling rich preview cards similar to those in messaging apps.

Flexible Caching System

Includes a built-in in-memory cache and allows custom cache implementations via a protocol, optimizing performance for repeated requests.

Cancellable Network Requests

Supports cancellation of preview requests, which is useful for managing network operations in responsive user interfaces.

Cons

Archived and Unmaintained

The project is archived as of 2025, meaning no future updates, bug fixes, or support, making it risky for new or long-term projects.

Security Configuration Required

Requires setting 'Allow Arbitrary Loads' to YES in Info.plist, which can be a security concern and adds complexity to app configuration.

Reliability Limitations

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.

Frequently Asked Questions

Quick Stats

Stars1,386
Forks197
Contributors0
Open Issues18
Last commit1 year ago
CreatedSince 2016

Tags

#ios#metadata-extraction#crawler#swift-package-manager#tvos#flow#watchos#cocoapods#swift#opengraph#carthage#macos#url-parsing

Built With

S
Swift

Links & Resources

Website

Included in

iOS51.7kSwift26.0k
Auto-fetched 1 day ago

Related Projects

SwifterSwiftSwifterSwift

A handy collection of more than 500 native Swift extensions to boost your productivity.

Stars15,040
Forks1,672
Last commit16 days ago
R.swiftR.swift

Strong typed, autocompleted resources like images, fonts and segues in Swift projects

Stars9,588
Forks780
Last commit1 year ago
BlocksKitBlocksKit

The Objective-C block utilities you always wish you had.

Stars6,840
Forks1,252
Last commit8 years ago
PeripheryPeriphery

A tool to identify unused code in Swift projects.

Stars6,092
Forks227
Last commit3 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub