A Swift library for highlighting text in UI objects like UILabel, UITextView, and UIButton within iOS views.
Highlighter is a Swift library for iOS that allows developers to programmatically highlight text within UI objects like UILabel, UITextView, UITextField, and UIButton. It solves the problem of manually searching and styling text in complex view hierarchies by automatically finding matching text in subviews and applying customizable attributes.
iOS developers building apps with search functionality, dynamic text highlighting, or data-driven UI components, particularly those using UITableView or custom view hierarchies.
Developers choose Highlighter for its dead-simple API, automatic subview traversal, and flexibility in targeting specific UI component types, reducing boilerplate code for text highlighting compared to manual implementations.
🖍 Highlight whatever you want!
Automatically traverses view hierarchies to find and highlight text in supported UI components like UILabel and UITextView, eliminating manual search code as shown in the README's single method call.
Allows developers to specify dictionaries for both normal and highlighted text states, enabling full control over appearance with attributes like background color or font, as demonstrated in the examples.
Can limit highlighting to specific UI types, such as only UIButton, for targeted and efficient text emphasis, providing flexibility beyond broad searches.
With a single method call like `view.highlight(...)`, integration is straightforward, reducing boilerplate compared to custom implementations, as emphasized in the README's philosophy.
Only supports UILabel, UITextView, UITextField, and UIButton, so highlighting in other views like WKWebView or custom components requires manual workarounds or alternative libraries.
Automatic traversal of subviews can be inefficient for very deep or numerous views, potentially impacting UI responsiveness in large UITableViews or complex hierarchies.
Lacks features for animated or interactive highlights, as it only applies static attributes, limiting use cases where dynamic text effects are needed.
A handy collection of more than 500 native Swift extensions to boost your productivity.
Strong typed, autocompleted resources like images, fonts and segues in Swift projects
Powerful text framework for iOS to display and edit rich text.
A tool to identify unused code in 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.