A UITextView subclass that adds multiline placeholder support for iOS apps, written in Swift.
KMPlaceholderTextView is a Swift library that provides a UITextView subclass with built-in support for multiline placeholder text. It solves the common iOS development problem where UITextView lacks native placeholder functionality, especially for multi-line input scenarios.
iOS developers building apps that require text input with placeholder hints in UITextView, particularly those using Swift and Interface Builder.
Developers choose KMPlaceholderTextView because it offers a simple, drop-in solution with full Interface Builder support, eliminating the need to manually implement placeholder logic for UITextView.
A UITextView subclass that adds support for multiline placeholder written in Swift.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Adds placeholder text that spans multiple lines within UITextView, addressing a common gap in iOS development where UITextField is single-line only, as demonstrated in the preview GIF.
Seamlessly configurable in Storyboard or XIB files by setting the custom class and placeholder property in the Attributes inspector, shown in the storyboard-setting GIF.
Set the placeholder property just like UITextField with minimal code changes, making it easy to adopt in existing projects, as illustrated in the code example.
Written entirely in Swift, ensuring modern syntax and compatibility with Swift-based iOS applications without Objective-C bridging.
Focuses on basic placeholder text without support for attributes like color, font, or animations, which might require manual subclassing or additional libraries.
Only supports CocoaPods and Carthage, missing Swift Package Manager which is increasingly standard for Swift dependency management in newer projects.
README provides basic setup and usage but lacks guidance on edge cases, such as handling placeholder with attributed text or integration in complex layouts.