All Projects → ruslanskorb → Rskplaceholdertextview

ruslanskorb / Rskplaceholdertextview

Licence: apache-2.0
A light-weight UITextView subclass that adds support for placeholder.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Rskplaceholdertextview

STTextView
📝 STTextView is a light-weight library that adds a placeholder to the UITextView.
Stars: ✭ 36 (-81.25%)
Mutual labels:  placeholder, text, textview
Typewriterview
Android library for typewriter like effects
Stars: ✭ 124 (-35.42%)
Mutual labels:  text, textview
TextInputLayout
The objective of this code is to guide you to create login screen with TextInputLayout in iOS app.
Stars: ✭ 30 (-84.37%)
Mutual labels:  placeholder, text
CheckableTextView
A simple and flexible Checked TextView or Checkable TextView
Stars: ✭ 108 (-43.75%)
Mutual labels:  text, textview
React Spectrum
Generate colorful text placeholders 🎨
Stars: ✭ 289 (+50.52%)
Mutual labels:  text, placeholder
Attributedstring
基于Swift插值方式优雅的构建富文本, 支持点击长按事件, 支持不同类型过滤, 支持自定义视图等.
Stars: ✭ 294 (+53.13%)
Mutual labels:  text, textview
Inputkit
📝InputKit, an Elegant Kit to limits your input text, inspired by BlocksKit, written in both Objective-C & ⚡️Swift.
Stars: ✭ 420 (+118.75%)
Mutual labels:  text, textview
Tytext
text asynchronous rendering by TextKit for iOS
Stars: ✭ 127 (-33.85%)
Mutual labels:  text, textview
Hgplaceholders
Nice library to show placeholders and Empty States for any UITableView/UICollectionView in your project
Stars: ✭ 2,048 (+966.67%)
Mutual labels:  placeholder
Spannabletextview
SpannableTextView is a custom TextView which lets you customize the styling of slice of your text or statment via Spannables, but without the hassle of having to deal directly with Spannable themselves.
Stars: ✭ 177 (-7.81%)
Mutual labels:  text
Textwrap
An efficient and powerful Rust library for word wrapping text.
Stars: ✭ 164 (-14.58%)
Mutual labels:  text
Git History
Quickly browse the history of a file from any git repository
Stars: ✭ 12,676 (+6502.08%)
Mutual labels:  text
Vue Morphling
Vue filters and directives collection.
Stars: ✭ 179 (-6.77%)
Mutual labels:  placeholder
Supertextview
🎀 SuperTextView for Android 是一个在TextView的基础上扩展了几种动画效果的控件。
Stars: ✭ 165 (-14.06%)
Mutual labels:  textview
Cucco
Text normalization library for Python
Stars: ✭ 185 (-3.65%)
Mutual labels:  text
Pangu.py
Paranoid text spacing in Python
Stars: ✭ 163 (-15.1%)
Mutual labels:  text
Android Lib Verticalmarqueetextview
A custom TextView with vertical marquee effect
Stars: ✭ 163 (-15.1%)
Mutual labels:  textview
Slantedtextview
Android slanted TextView.
Stars: ✭ 2,197 (+1044.27%)
Mutual labels:  textview
Ocskeleton
[OCSkeleton] - Make your loading view a little difference.
Stars: ✭ 184 (-4.17%)
Mutual labels:  placeholder
React Native Loading Placeholder
React Native Loading Placeholder
Stars: ✭ 176 (-8.33%)
Mutual labels:  placeholder

RSKPlaceholderTextView Swift 5.1 Swift Package Manager Compatible CocoaPods Compatible Carthage compatible

Sample

A light-weight UITextView subclass that adds support for placeholder.

Installation

Using Swift Package Manager

  1. To add the RSKPlaceholderTextView package to your Xcode project, select File > Swift Packages > Add Package Dependency and enter the repository URL.

     https://github.com/ruslanskorb/RSKPlaceholderTextView.git
    

Using CocoaPods

  1. Add the pod RSKPlaceholderTextView to your Podfile.

    pod 'RSKPlaceholderTextView'
    
  2. Run pod install from Terminal, then open your app's .xcworkspace file to launch Xcode.

Using Carthage

  1. Add the ruslanskorb/RSKPlaceholderTextView project to your Cartfile.

    github "ruslanskorb/RSKPlaceholderTextView"
    
  2. Run carthage update, then follow the additional steps required to add the iOS and/or Mac frameworks into your project.

Basic Usage

Import the module.

import RSKPlaceholderTextView

Just create a text view and set the placeholder.

override func viewDidLoad() {
    super.viewDidLoad()

    self.textView = RSKPlaceholderTextView(frame: CGRect(x: 0, y: 20, width: self.view.frame.width, height: 100))
    self.textView.placeholder = "What do you want to say about this event?"

    self.view.addSubview(self.textView)
}

Demo

Build and run the RSKPlaceholderTextViewExample project in Xcode to see RSKPlaceholderTextView in action. Have fun. Figure out hooks for customization.

Contact

Ruslan Skorb

License

This project is available under the Apache License, version 2.0. See the LICENSE file for more info.

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