Latest 1.1.3
Homepage https://github.com/taiking/TextFieldFloatingPlaceholder
License MIT
Platforms ios 9.0
Authors

Carthage compatible
Version
License
Platform
Swift

Demo

How to

  1. Add uitextfield to storyboard.
  2. Inherit from TextFieldFloatingPlaceholder.
  3. Optionally set the following properties.
property effect
floatingPlaceholderMinFontSize Font size when raised
floatintPlaceholderDuration Animation Duration
floatingPlaceholderColor Font Color
validationFalseLineEditingColor Underline color under editing and validation NG
validationTrueLineEditingColor Underline color under editing and validation OK
validationFalseLineColor Underline color under not editing and validation NG
validationTrueLineColor Underline color under not editing and validation OK
validation Varidation closure

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 9.0 or later
  • Xcode 9.x
  • Swift 4.x

Installation

TextFieldFloatingPlaceholder supports installation via the package managers Carthage and CocoaPods.

Carthage

  • Add github "taiking/TextFieldFloatingPlaceholder" to your Cartfile.
  • Run carthage update.

CocoaPods

Add the followings to your Podfile:

use_frameworks!
pod "TextFieldFloatingPlaceholder"

Run pod install.

License

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

Latest podspec

{
    "name": "TextFieldFloatingPlaceholder",
    "version": "1.1.3",
    "summary": "Text Field with floating placeholder and under line changed by validation",
    "description": "Text Field with floating placeholder and under line changed by validation",
    "homepage": "https://github.com/taiking/TextFieldFloatingPlaceholder",
    "license": {
        "type": "MIT",
        "file": "./LICENSE"
    },
    "authors": {
        "chocovayashi": "[email protected]"
    },
    "source": {
        "git": "https://github.com/taiking/TextFieldFloatingPlaceholder.git",
        "tag": "1.1.3"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "Sources/**/*"
}

Pin It on Pinterest

Share This