All Projects → devxoul → Uitextview Placeholder

devxoul / Uitextview Placeholder

Licence: mit
A missing placeholder for UITextView

Projects that are alternatives of or similar to Uitextview Placeholder

STTextView
📝 STTextView is a light-weight library that adds a placeholder to the UITextView.
Stars: ✭ 36 (-97.27%)
Mutual labels:  placeholder, uitextview
Inputaccessoryview
Input Accessory View for Commenting and Chat User Interfaces built in Swift, if you like it please "☆"
Stars: ✭ 39 (-97.04%)
Mutual labels:  placeholder, uitextview
Crboxinputview
Verify code input view. Support security type for password.短信验证码输入框,支持密文模式
Stars: ✭ 749 (-43.13%)
Mutual labels:  placeholder, uitextview
Growingtextview
An UITextView in Swift. Support auto growing, placeholder and length limit.
Stars: ✭ 683 (-48.14%)
Mutual labels:  placeholder, uitextview
Cminputview
💪之前代码是基于UITextView进行的封装,侵入性较强,不方便使用,现使用Category重构代码,支持Cocoapods
Stars: ✭ 149 (-88.69%)
Mutual labels:  placeholder, uitextview
Kmplaceholdertextview
A UITextView subclass that adds support for multiline placeholder written in Swift.
Stars: ✭ 696 (-47.15%)
Mutual labels:  placeholder, uitextview
React Simple Img
🌅 React lazy load images with IntersectionObserver API and Priority Hints
Stars: ✭ 905 (-31.28%)
Mutual labels:  placeholder
V Img Fallback
Vue Image Fallback
Stars: ✭ 43 (-96.74%)
Mutual labels:  placeholder
Phpfn
Functional PHP Toolstet: Centralized monorepository for all libraries
Stars: ✭ 19 (-98.56%)
Mutual labels:  placeholder
Placekeanu.com
For when you need a little more Keanu in your life
Stars: ✭ 63 (-95.22%)
Mutual labels:  placeholder
Regeributedtextview
RegeributedTextView is a subclass of UITextView that supports fully attribute string based on regular expression.
Stars: ✭ 40 (-96.96%)
Mutual labels:  uitextview
Desertplaceholder
Animated placeholder in desert style.
Stars: ✭ 725 (-44.95%)
Mutual labels:  placeholder
Skeleton Elements
Skeleton elements - UI for improved perceived performance
Stars: ✭ 27 (-97.95%)
Mutual labels:  placeholder
Wynullview
An easy way to use for view's empty state 一行代码显示空视图,高度自定义
Stars: ✭ 44 (-96.66%)
Mutual labels:  placeholder
Placeholder Loading
Simple and flexible, css only, content placeholder loading animation. https://zalog.github.io/placeholder-loading/
Stars: ✭ 1,137 (-13.67%)
Mutual labels:  placeholder
Vue Content Loading
Vue component to easily build (or use presets) SVG loading cards Facebook like.
Stars: ✭ 729 (-44.65%)
Mutual labels:  placeholder
Ssplaceholdertableview
SSPlaceholderTableView is Placeholder Library for different different state wise placeHolder for UITableView/UICollectionView. Check https://www.cocoacontrols.com/controls/ssplaceholdertableview
Stars: ✭ 39 (-97.04%)
Mutual labels:  placeholder
Babel Plugin Partial Application
[DEPRECATED] Please use https://github.com/citycide/param.macro
Stars: ✭ 60 (-95.44%)
Mutual labels:  placeholder
React Shimmer
🌠 Async loading, performant Image component for React.js
Stars: ✭ 990 (-24.83%)
Mutual labels:  placeholder
Superplaceholder.js
⚡Super charge your input placeholders
Stars: ✭ 978 (-25.74%)
Mutual labels:  placeholder

UITextView+Placeholder

Build Status CocoaPods

A missing placeholder for UITextView.

Installation

Use CocoaPods.

pod 'UITextView+Placeholder'

Usage

  • Import Dynamic Framework:

    e.g. If you're using CocoaPods with use_frameworks! flag.

    @import UITextView_Placeholder;
    
  • Import Static Library:

    #import <UITextView+Placeholder/UITextView+Placeholder.h>
    

Then create UITextView and set placeholder.

  • Implement Objective-C:

    UITextView *textView = [[UITextView alloc] init];
    textView.placeholder = @"How are you?";
    textView.placeholderColor = [UIColor lightGrayColor]; // optional
    textView.attributedPlaceholder = ... // NSAttributedString (optional)
    
  • Implement Swift:

    let textView = UITextView()
    textView.placeholder = "How are you?"
    textView.placeholderColor = UIColor.lightGray // optional
    textView.attributedPlaceholder = ... // NSAttributedString (optional)
    

Congratulations! You're done. 🎉

License

UITextView+Placeholder is under MIT license. See the LICENSE file for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].