A Swift library providing type-safe font management with code completion for iOS and tvOS.
UIFontComplete is a Swift library that provides type-safe font management for iOS and tvOS apps. It replaces string-based font names with an enum, eliminating runtime errors from typos and enabling Xcode code completion. The library supports both system and custom fonts, and works with both UIKit and SwiftUI.
iOS and tvOS developers using Swift who want to avoid font-related runtime crashes and improve development speed with autocompletion.
Developers choose UIFontComplete because it turns font management from an error-prone string-based task into a type-safe, autocomplete-friendly experience, reducing bugs and saving time during UI development.
Font management (System & Custom) for iOS and tvOS
Replaces error-prone string-based font names with an enum, eliminating runtime crashes from typos, as demonstrated by the comparison between UIFont(name:size:) and UIFont(font:size:).
Leverages Xcode's autocomplete to suggest font names as you type, speeding up development, with a GIF in the README showing real-time suggestions.
Allows adding custom fonts via the FontRepresentable protocol, enabling the same type-safe experience as system fonts, with a clear example in the README.
Works seamlessly with SwiftUI's Font type, making it easy to adopt in modern iOS development without switching between UIKit and SwiftUI APIs.
Includes all iOS and tvOS system fonts as enum cases, ensuring developers have access to every built-in font without missing any.
Only supports iOS and tvOS, not macOS or watchOS, requiring separate solutions for full Apple ecosystem projects.
Requires creating a custom enum for each font via FontRepresentable, which can be tedious and error-prone when managing many custom fonts, as shown in the example.
Font names are defined statically at compile time, making it unsuitable for apps that need to load fonts dynamically from resources or remote sources.
Requires Swift 4.0 or higher, which may not be compatible with legacy projects using older Swift versions, as indicated by the Swift 5.0 badge.
Icon font library for iOS. Currently supports Font-Awesome, Foundation icons, Zocial, and ionicons.
NSString+FontAwesome
:art: Auto-generated icon font library for iOS, watchOS and tvOS
Use FontAwesome in your Swift projects
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.