Repository navigation
The first release since 2017: Font Awesome 7, Swift 6 and SwiftUI.
Highlights
- Font Awesome 7.3.1 Free: 2,163 icons in three styles,
FA.Solid,FA.RegularandFA.Brands, generated from the official metadata. - SwiftUI:
Text(fa: .solid(.house)),Label("Settings", fa: .solid(.gear)),Image(fa:),FAIconViewwith.faIcon(size:color:), and icons inside text:Text("Follow me on \(fa: .brands(.github))"). - Swift 6 with strict concurrency, Swift Package Manager, iOS 15+, macOS 12+, tvOS 15+, visionOS.
- UIKit extensions keep their names (
setFAIcon,setFAText, …) and takeFA.Icon. New:iconColor:, icon centered on text,shadow:,setFAIcon(icon: nil). - AppKit extensions for macOS:
NSImage(icon:size:),NSFont.fontAwesome,NSButton,NSImageView,NSTextField. - Accessibility labels for every icon, Dynamic Type in SwiftUI.
- SwiftUI example app with a searchable gallery of all icons.
- Tests with Swift Testing and CI on GitHub Actions.
Install
.package(url: "https://github.com/Vaberer/Font-Awesome-Swift.git", from: "2.0.0")CocoaPods (the trunk is read-only since December 2, 2026, so 2.x comes from the Git tag):
pod 'Font-Awesome-Swift', :git => 'https://github.com/Vaberer/Font-Awesome-Swift.git', :tag => '2.0.0'Upgrading from 1.x
1.x code still compiles: FAType maps the Font Awesome 4.7 names to Font Awesome 7 and the deprecation warnings point to the new names. See MIGRATION.md.
Licenses
Code MIT. Font Awesome Free by Fonticons, Inc.: fonts SIL OFL 1.1, icons CC BY 4.0, bundled with their license.
Thanks to everyone who opened issues and pull requests over the years.