Swiftpack.co -  tgymnich/FaviconPublishPlugin as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
🏞Add favicons to the links on your blog
.package(url: "https://github.com/tgymnich/FaviconPublishPlugin.git", from: "0.0.3")


Add Favicons to your links.


Add this to your style.css:

.wrapper a[href^="http"] {
  padding-left: 19px;
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: left center;

.wrapper a  {
  display: block;
  margin: 10px;
  text-decoration: none;

In your Package.swift add:

.package(url: "https://github.com/tgymnich/FaviconPublishPlugin.git", from: "0.0.1")


To load the plugin simply add these lines:

import FaviconPublishPlugin


try MyWebsite().publish(
    plugins: [.addFaviconsToLinks(in: ".wrapper")]


Stars: 1
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.


Release Notes

1 year ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API