Description
The easiest way to implement font icons in your SwiftUI project.
SwiftUIFontIcon alternatives and similar libraries
Based on the "Fonts" category.
Alternatively, view SwiftUIFontIcon alternatives based on common mentions on social networks and blogs.
-
FontAwesome.swift
Use FontAwesome in your Swift projects. -
SwiftIconFont
Fontawesome, Iconic, Ionicons, Octicon porting for Swift. -
UIFontComplete
Make working with UIFont faster and less error-prone. -
FontBlaster
Programmatically load custom fonts into your iOS app. -
SwiftIcons
Library for Font Icons: dripicons, emoji, font awesome, icofont, ionicons, linear icons, map icons, material icons, open iconic, state, weather. -
GoogleMaterialDesignIcons
google Material Design Icons Font for iOS. -
IoniconsKit
Use ionicons as UIImage / UIFont in your projects with Swifty manners -
GoogleMaterialIconFont
Google Material Icon Font for Swift and ObjC. -
SwiftFontName
OS font complements library. Localized font supported. -
TypographyKit
๐ฐ Consistent & accessible visual styling on iOS with support for Dynamic Type. -
Swicon
Use 1600+ icons from FontAwesome and Google Material Icons (and even your own customized icons) in your swift/iOS project! -
Font-Awesome
Use Font Awesome in project written in Swift. -
OcticonsKit
Use Octicons as UIImage / UIFont in your projects with Swifty manners.
Scout APM - Leading-edge performance monitoring starting at $39/month
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of SwiftUIFontIcon or a related project?
README
SwiftUIFontIcon
The easiest way to implement font icons in your SwiftUI project.
Usage
The library is super super easy to use, just something like this :)
Text
import SwiftUIFontIcon
// ...
FontIcon.text(.materialIcon(code: .access_alarm))
FontIcon.text(.materialIcon(code: .access_alarm), fontsize: 30)
Button
FontIcon.button(.ionicon(code: .md_add_circle), action: {})
FontIcon.button(.materialIcon(code: .settings), action: {}, padding: 8)
.background(RoundedRectangle(cornerRadius: 4).foregroundColor(.blue))
Installation
Cocoapods (Xcode 11 & Xcode 12)
CocoaPods is a dependency manager for Cocoa projects.
You can install it with the following command:
$ gem install cocoapods
To integrate SwiftUIFontIcon into your Xcode project using CocoaPods, specify it in your Podfile
:
use_frameworks!
pod 'SwiftUIFontIcon'
SPM (Xcode 12 only)
The preferred way of installing SwiftUIFontIcon is via the Swift Package Manager.
Xcode 12 integrates with libSwiftPM to provide support for iOS, watchOS, and tvOS platforms.
- In Xcode, open your project and navigate to File โ Swift Packages โ Add Package Dependency...
- Paste the repository URL (
https://github.com/huybuidac/SwiftUIFontIcon
) and click Next. - For Rules, select Branch (with branch set to
master
). - Click Finish.
- Open the Project settings, add SwiftUI.framework to the Linked Frameworks and Libraries, set Status to Optional.
Sample
To run the example project of SPM, using xcode 12 beta
To run the example project of Cocoapods, using xcode 11 || 12 beta
Supported fonts
Currently, SwiftUIFontIcon supports:
- Material icon
- Ionicons
- Font Awesome 5 Free