devxoul/UITextView-Placeholder
devxoul/UITextView-Placeholder has 1,548 GitHub stars and 275 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-08 04:13 UTC. Last push 2026-01-19.
A missing placeholder for UITextView
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalUITextView+Placeholder
A missing placeholder for UITextView.
Note: CocoaPods support has been removed. Please use Swift Package Manager for installation.
Installation
Swift Package Manager
Add the following to your Package.swift file:
dependencies: [
.package(url: "https://github.com/devxoul/UITextView-Placeholder.git", from: "1.5.0")
]
Or add it through Xcode:
- File → Add Package Dependencies...
- Enter
https://github.com/devxoul/UITextView-Placeholder.git - Select the version and add to your target
Usage
Import the module and set placeholder on your UITextView.
Objective-C:
@import UITextView_Placeholder; UITextView *textView = [[UITextView alloc] init]; textView.placeholder = @"How are you?"; textView.placeholderColor = [UIColor lightGrayColor]; // optional textView.attributedPlaceholder = ... // NSAttributedString (optional)Swift:
import UITextView_Placeholder let textView = UITextView() textView.placeholder = "How are you?" textView.placeholderColor = UIColor.lightGray // optional textView.attributedPlaceholder = ... // NSAttributedString (optional)
Congratulations! You're done. 🎉
Development
This project uses Tuist for project generation.
# Install Tuist (if not already installed)
curl -Ls https://install.tuist.io | bash
# Generate Xcode project
tuist generate
# Build
tuist build Demo
# Run tests
tuist test
# Run the demo app
tuist run Demo
License
UITextView+Placeholder is under MIT license. See the LICENSE file for more information.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,861 starspublic-apis/public-apis
A collective list of free APIs
497,105 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
441,758 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,164 stars