Skip to content

lcandy2/PhosphorSymbols

Repository files navigation

PhosphorSymbols

Phosphor Icons automatically converted to custom SF Symbol format, distributed as a Swift Package.

Converted from phosphor-icons/core using SwiftDraw.

Install

Swift Package Manager

Add this repository URL in Xcode → File → Add Package Dependencies:

https://github.com/piecelet/PhosphorSymbols.git

Manual

Download from Releases and drag the .svg files into your Xcode Asset Catalog.

Usage

import PhosphorSymbols

// SwiftUI
Image(phosphor: .heart)
Image(phosphor: .heart_fill)
Image(phosphor: .heart_duotone)
Label("Favorites", phosphor: .heart)

// UIKit
let image = UIImage(phosphor: .heart)

// AppKit
let image = NSImage(phosphor: .heart)

All symbols behave like native SF Symbols — they support dynamic type, weight matching, symbol rendering modes, and tinting.

Variants

Directory Description Variable Weight
Symbols/outline/ Outline style Yes (thin ↔ bold)
Symbols/fill/ Filled style No
Symbols/duotone/ Two-tone style No

Naming Convention

Hyphens and dots in Phosphor icon names are replaced with underscores:

Phosphor Icon Swift Property
arrow-up .arrow_up
heart .heart
heart.fill .heart_fill
heart.duotone .heart_duotone

Local Conversion

brew install swiftdraw
git clone https://github.com/phosphor-icons/core.git phosphor-core
node Scripts/convert.mjs --phosphor-core phosphor-core

Automation

A GitHub Actions workflow runs weekly to check for Phosphor Icons updates and auto-converts new icons. You can also trigger it manually from the Actions tab.

License

Phosphor Icons are licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages