A declarative text styling library for iOS with streamlined Dynamic Type support.
StyledText is an iOS library that simplifies text styling by replacing attributed strings with declarative TextStyle objects. It provides drop-in replacements for UILabel, UITextView, and UIButton that automatically apply consistent styling, and includes built-in support for Apple's Dynamic Type font scaling.
iOS developers building apps that require consistent text styling, dynamic font scaling, or accessibility support for varying text sizes.
Developers choose StyledText to eliminate verbose attributed string boilerplate, ensure consistent text styling across their app, and seamlessly integrate Dynamic Type support with minimal code.
Declarative text styles and streamlined Dynamic Type support for iOS
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Replaces verbose NSAttributedString code with reusable TextStyle objects, making text updates cleaner and more maintainable, as shown in the README's before/after example with StyledLabel.
Supports automatic font scaling for accessibility with configurable behaviors like scaleToStandardSizes or scaleToAllSizes, simplifying compliance with iOS accessibility guidelines without extra setup.
Provides StyledLabel, StyledTextView, and StyledButton that automatically apply text styles, reducing boilerplate and ensuring consistency across text elements in UIKit apps.
StyledButton supports separate text styles for each UIControlState (normal, highlighted, disabled, selected), enabling dynamic UI responses without additional code.
Requires calling refreshStyle() on components when system font size changes, adding complexity and potential for missed updates, as noted in the README's need for DynamicTypeControllerDelegate.
Not compatible with SwiftUI, making it unsuitable for modern iOS projects adopting Apple's newer UI framework without cumbersome wrappers like UIViewRepresentable.
Focuses on basic styling attributes (font, color, spacing) and lacks support for advanced attributed string features such as text attachments or custom underlines, which might require fallbacks to NSAttributedString.