Font management (System & Custom) for iOS and tvOS. No more wasted time searching for names of UIFont fonts and no more surprises at runtime if a font name was mistyped. This library is simply one extension to UIFont and one Font enum with a case for each system font on iOS and tvOS. Custom font support is also available, please keep reading for details! This library currently provides two different options for creating UIFont objects. The first is calling the font name off of the provided BuiltInFont enumeration and then calling of(size:) to provide the desired size. The other UIFont creation method offered by this library is similar to the normal UIFont constructor except that instead of providing a String of the desired font, a case of the Font enum is provided instead. Custom Fonts can be added with the help of the FontRepresentable protocol.
Features
- Custom Fonts can be added with the help of the FontRepresentable protocol
- SwiftUI support
- SwiftUI Font is handled in a same way as UIKit UIFont
- Requires Xcode 9.0
- Requires Swift 4.0+
- You can now simply start typing the name of the font enum and let code completion help you