Latest 0.1.2
Homepage https://github.com/SwiftyKit/SwiftyTextView
License MIT
Platforms ios 8.0
Authors

License
Language

Overview

SwiftyTextView is an iOS enhanced TextView with placeholder and limit characters count support.

enter image description here

Installation

CocoaPods

SwiftyTextView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'SwiftyTextView'

Manual

Drag ‘n drop SwiftyTextView.swift into your project.

Usage

Interface Builder

Select the UITextView you want to use and change the class to SwiftyTextView.

  • Placeholder text
  • Placeholder color
  • Limit number of characters
  • Show text count view

You can see the changes directly on the Interface Builder!

Code

let textView:SwiftyTextView = SwiftyTextView.init(frame: CGRect.init(x: X, y: Y, width: WIDTH, height: HEIGHT))
      textView.backgroundColor = .red
      textView.placeholder = "Please input text..."
      textView.placeholderColor = UIColor.lightGray
      textView.minNumberOfWords = 0
      textView.maxNumberOfWords = 30
      textView.showTextCountView = true
      self.view.addSubview(txtfield)

Requirements

  • Swift 3.0+
  • iOS 8.0+

Contact & Contribute

  • Feel free to contact me with ideas or suggestions at [email protected]
  • Fork the project and make your own changes

License

SwiftyTextView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SwiftyTextView",
    "version": "0.1.2",
    "summary": "An iOS TextView with placeholder and limit characters count support",
    "description": "SwiftyTextView is a enhanced TextView with placeholder and limit characters count support for iOS.",
    "homepage": "https://github.com/SwiftyKit/SwiftyTextView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "SwiftyKit": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "swift_version": "3.2",
    "source": {
        "git": "https://github.com/SwiftyKit/SwiftyTextView.git",
        "tag": "0.1.2"
    },
    "source_files": [
        "Sources/*.swift",
        "Sources/SwiftyTextView.h",
        "Sources/SwiftyTextView.swift"
    ],
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This