Swiftpack.co - donggyushin/DGPlaceholderTextView as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by donggyushin.
donggyushin/DGPlaceholderTextView v1.0.2
A light-weight UITextView that supports for placeholder.
⭐️ 5
🕓 2 years ago
iOS
.package(url: "https://github.com/donggyushin/DGPlaceholderTextView.git", from: "v1.0.2")
  1. DGPlaceholderTextView
  2. Requirements
  3. Installation
  4. Usage
  5. Properties

DGPlaceholderTextView

A light-weight UITextView that supports for placeholder.

Requirements

  • iOS 12.0+
  • Swift 5.5+
  • Xcode 10.0+

Installation

SPM

File > Add Packages > https://github.com/donggyushin/DGPlaceholderTextView

CocoaPod

pod 'DGPlaceholderTextView', :git => 'https://github.com/donggyushin/DGPlaceholderTextView'

Usage

let placeholderTextView = DGPlaceholderTextView()
placeholderTextView.placeholder = "This is place holder text"

Properties

Properties Description Default Type
horizontalPadding placeholder's horizontal padding value to TextView 4.5 CGFloat
verticalPadding placeholder's vertical padding value to TextView 7.5 CGFloat
placeholder placeholder text value nil String?
placeholderTextColor placeholder's text color .gray UIColor
font textview's text font .systemFont(ofSize: 17) UIFont

GitHub

link
Stars: 5
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

v1.0.2
2 years ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics