A Swift UITextView that automatically grows in height, with placeholder support and length limiting.
GrowingTextView is a customizable UITextView component for iOS that automatically adjusts its height as the user types. It provides a seamless text input experience, commonly used in messaging apps and comment sections where dynamic text expansion is needed.
iOS developers building apps that require dynamic text input fields, such as messaging, comment sections, or note-taking features.
It offers a simple, drop-in replacement for UITextView with essential enhancements like auto-growing height, placeholder support, and length limits, without unnecessary complexity.
An UITextView in Swift. Support auto growing, placeholder and length limit.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Dynamically expands and contracts based on content, eliminating scrolling in fixed areas, as shown in the DEMO.gif for seamless input in messaging apps.
Supports customizable placeholder text with color and attributed string settings, providing better UX for input fields, as detailed in the customization table.
Allows setting a maximum character count with automatic trimming of exceeded text, useful for apps with length constraints like social media posts.
Enables setting minimum and maximum heights to control the text view's expansion range, offering precise layout control for various UI designs.
Does not support rich text formatting, markdown, or accessibility enhancements beyond standard UITextView, limiting use in content-rich editors.
Requires developers to implement the textViewDidChangeHeight delegate and manually call layoutIfNeeded for animations, adding complexity compared to fully automated solutions.
The README warns about needing to set automaticallyAdjustsScrollViewInsets to false to avoid incorrect adjustments, which can be a common issue for less experienced developers.