All Projects → onl1ner → STTextView

onl1ner / STTextView

Licence: MIT license
📝 STTextView is a light-weight library that adds a placeholder to the UITextView.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to STTextView

Tweetextfield
Lightweight set of text fields with nice animation and functionality. 🚀 Inspired by https://uimovement.com/ui/2524/input-field-help/
Stars: ✭ 421 (+1069.44%)
Mutual labels:  carthage, uikit, interface-builder
Rskplaceholdertextview
A light-weight UITextView subclass that adds support for placeholder.
Stars: ✭ 192 (+433.33%)
Mutual labels:  placeholder, text, textview
Uitextfield Navigation
🏄‍♂️ UITextField-Navigation makes it easier to navigate between UITextFields and UITextViews
Stars: ✭ 436 (+1111.11%)
Mutual labels:  carthage, uitextview, interface-builder
TextInputLayout
The objective of this code is to guide you to create login screen with TextInputLayout in iOS app.
Stars: ✭ 30 (-16.67%)
Mutual labels:  placeholder, text, placeholder-text
Pincodeinputview
A input text view for entering pin code.
Stars: ✭ 108 (+200%)
Mutual labels:  carthage, uitextview, textview
react-input-hints
Get more out of your placeholders. Animates input placeholders to make it look like they are being typed in realtime - https://npmjs.com/react-input-hints
Stars: ✭ 56 (+55.56%)
Mutual labels:  placeholder, placeholder-text
React Spectrum
Generate colorful text placeholders 🎨
Stars: ✭ 289 (+702.78%)
Mutual labels:  placeholder, text
Growingtextview
An UITextView in Swift. Support auto growing, placeholder and length limit.
Stars: ✭ 683 (+1797.22%)
Mutual labels:  placeholder, uitextview
Inputaccessoryview
Input Accessory View for Commenting and Chat User Interfaces built in Swift, if you like it please "☆"
Stars: ✭ 39 (+8.33%)
Mutual labels:  placeholder, uitextview
Inputkit
📝InputKit, an Elegant Kit to limits your input text, inspired by BlocksKit, written in both Objective-C & ⚡️Swift.
Stars: ✭ 420 (+1066.67%)
Mutual labels:  text, textview
Kmplaceholdertextview
A UITextView subclass that adds support for multiline placeholder written in Swift.
Stars: ✭ 696 (+1833.33%)
Mutual labels:  placeholder, uitextview
Uitextview Placeholder
A missing placeholder for UITextView
Stars: ✭ 1,317 (+3558.33%)
Mutual labels:  placeholder, uitextview
Tytext
text asynchronous rendering by TextKit for iOS
Stars: ✭ 127 (+252.78%)
Mutual labels:  text, textview
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 (+747.22%)
Mutual labels:  placeholder, uikit
Typewriterview
Android library for typewriter like effects
Stars: ✭ 124 (+244.44%)
Mutual labels:  text, textview
Crboxinputview
Verify code input view. Support security type for password.短信验证码输入框,支持密文模式
Stars: ✭ 749 (+1980.56%)
Mutual labels:  placeholder, uitextview
Cminputview
💪之前代码是基于UITextView进行的封装,侵入性较强,不方便使用,现使用Category重构代码,支持Cocoapods
Stars: ✭ 149 (+313.89%)
Mutual labels:  placeholder, uitextview
FormToolbar
Simple, movable and powerful toolbar for UITextField and UITextView.
Stars: ✭ 85 (+136.11%)
Mutual labels:  swift-framework, textview
OrangeLabel
OrangeLabel is extensions of UILabel linkable, available line background and placeholder text
Stars: ✭ 19 (-47.22%)
Mutual labels:  carthage, placeholder-text
CheckableTextView
A simple and flexible Checked TextView or Checkable TextView
Stars: ✭ 108 (+200%)
Mutual labels:  text, textview

STTextView

STTextView – easy and clean library written in Swift. The framework adds a custom UITextView subclass with a needed placeholder property.

Requirements

  • iOS 10.0 or above.

Framework is compatible with Swift 5.

Installation

STTextView is available through CocoaPods, Carthage and Swift Package Manager

CocoaPods

  • Add the following line into your Podfile:

    pod 'STTextView'
  • Then run this command in your terminal:

    $ pod install

Carthage

  • Add the following line into your Cartfile:

    github "onl1ner/STTextView"
    
  • And run the next command in terminal:

    $ carthage update

Swift Package Manager

  • In Xcode select:

    File > Swift Packages > Add Package Dependency...
    
  • Then paste this URL:

    https://github.com/onl1ner/STTextView.git
    

Manually

You could also install it manually. Just drag and drop the STTextView.swift file into your Xcode project.

Usage

Interface Builder

Simply attach STTextView class to your UITextView object and you will be able to change the values through the Interface Builder.

Swift

import STTextView

let textView = STTextView()
textView.placeholder = "Some placeholder text"
textView.placeholderColor = .secondaryLabel

You can also have an attributed placeholder. Use attributedPlaceholder property.

Example

Open example project STTextViewExample/STTextViewExample.xcworkspace to see a simple demonstrations of framework usage.

Contributing

Have some troubles? Feel free to open an issue.

License

STTextView is under the terms and conditions of the MIT license.

MIT License

Copyright (c) 2020 Tamerlan Satualdypov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
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].