All Projects → MoZhouqi → Kmplaceholdertextview

MoZhouqi / Kmplaceholdertextview

Licence: mit
A UITextView subclass that adds support for multiline placeholder written in Swift.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Kmplaceholdertextview

Crboxinputview
Verify code input view. Support security type for password.短信验证码输入框,支持密文模式
Stars: ✭ 749 (+7.61%)
Mutual labels:  placeholder, uitextview
Cminputview
💪之前代码是基于UITextView进行的封装,侵入性较强,不方便使用,现使用Category重构代码,支持Cocoapods
Stars: ✭ 149 (-78.59%)
Mutual labels:  placeholder, uitextview
Inputaccessoryview
Input Accessory View for Commenting and Chat User Interfaces built in Swift, if you like it please "☆"
Stars: ✭ 39 (-94.4%)
Mutual labels:  placeholder, uitextview
STTextView
📝 STTextView is a light-weight library that adds a placeholder to the UITextView.
Stars: ✭ 36 (-94.83%)
Mutual labels:  placeholder, uitextview
Uitextview Placeholder
A missing placeholder for UITextView
Stars: ✭ 1,317 (+89.22%)
Mutual labels:  placeholder, uitextview
Growingtextview
An UITextView in Swift. Support auto growing, placeholder and length limit.
Stars: ✭ 683 (-1.87%)
Mutual labels:  placeholder, uitextview
Wlemptystate
WLEmptyState is an iOS based component that lets you customize the view when the dataset of a UITableView or a UICollectionView is empty. We created a sample project with the WLEmptyState component to show how you can use it.
Stars: ✭ 305 (-56.18%)
Mutual labels:  placeholder
Veditorkit
Lightweight and Powerful Editor Kit
Stars: ✭ 441 (-36.64%)
Mutual labels:  uitextview
Skeleton
Skeleton Android
Stars: ✭ 293 (-57.9%)
Mutual labels:  placeholder
React Spectrum
Generate colorful text placeholders 🎨
Stars: ✭ 289 (-58.48%)
Mutual labels:  placeholder
Fake Images Please
Fakeimg.pl is a little tool that generates images with an URL. Choose the size, the colors, even the text. Oh… and it’s free.
Stars: ✭ 683 (-1.87%)
Mutual labels:  placeholder
Listplaceholder
ListPlaceholder is a swift library allows you to easily add facebook style animated loading placeholder to your tableviews or collection views.
Stars: ✭ 511 (-26.58%)
Mutual labels:  placeholder
React Native Blurhash
🖼️ A library to show colorful blurry placeholders while your content loads.
Stars: ✭ 430 (-38.22%)
Mutual labels:  placeholder
Skeleton
A library provides an easy way to show skeleton loading view like Facebook and Alipay
Stars: ✭ 3,368 (+383.91%)
Mutual labels:  placeholder
Nudein
An easy-to-use attributed text view for iOS Apps,use like masonry
Stars: ✭ 450 (-35.34%)
Mutual labels:  uitextview
Anyformatkit
Simple text formatting in Swift
Stars: ✭ 296 (-57.47%)
Mutual labels:  uitextview
React Native Shimmer Placeholder
Placeholder/ Skeleton of React Native
Stars: ✭ 679 (-2.44%)
Mutual labels:  placeholder
Sqip
"SQIP" (pronounced \skwɪb\ like the non-magical folk of magical descent) is a SVG-based LQIP technique.
Stars: ✭ 3,074 (+341.67%)
Mutual labels:  placeholder
Attributedtextview
Easiest way to create an attributed UITextView (with support for multiple links and from html)
Stars: ✭ 397 (-42.96%)
Mutual labels:  uitextview
Plaiceholder
Beautiful image placeholders, without the hassle 🖼
Stars: ✭ 474 (-31.9%)
Mutual labels:  placeholder

KMPlaceholderTextView

A UITextView subclass that adds support for multiline placeholder written in Swift.

PlaceholderTextView

Usage

You can set the value of the placeholder property just like using UITextField.

Interface Builder

Storyboard

  1. Drag a UITextView object onto the canvas.
  2. In the Identity inspector, set the Custom Class name to KMPlaceholderTextView.
  3. In the Attributes inspector, you can change the value of the placeholder property directly.

Code

let placeholderTextView = KMPlaceholderTextView(frame: view.bounds)
placeholderTextView.placeholder = "What's on your mind?"
view.addSubview(placeholderTextView)

Installation

CocoaPods

You can install the latest release version of CocoaPods with the following command:

$ gem install cocoapods

Simply add the following line to your Podfile:

platform :ios, '8.0' 
use_frameworks!

target '<Your Target Name>' do
  pod 'KMPlaceholderTextView', '~> 1.4.0'
end

Then, run the following command:

$ pod install

If you are encountering the following warning when using Xcode 8, please make sure to set the Module in the identity inspector of your KMPlaceholderTextView in the interface builder to KMPlaceholderTextView as well:

warning: IB Designables: Using class UITextView for object with custom class because the class KMPlaceholderTextView does not exist

Carthage

Carthage is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate KMPlaceholderTextView into your Xcode project using Carthage, specify it in your Cartfile:

github "MoZhouqi/KMPlaceholderTextView" >= 1.4

Requirements

  • iOS 7.0+
  • Xcode 10

License

KMPlaceholderTextView is released under the MIT license. See LICENSE for details.

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].