Gunay Mert Karadogan 8fed21f7ad Update Readme for dev
2015-07-14 22:36:47 +02:00
2015-07-14 22:20:53 +02:00
2015-07-14 11:52:11 +02:00
2015-07-14 22:20:53 +02:00
2015-07-14 22:36:47 +02:00

ParkedTextField

Version License Platform

A text field subclass with a constant text in the end.

Main functionality works. It is still under development.

Screenshot

ParkedTextField.gif

Usage

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

use_frameworks!
pod "ParkedTextField"

Setup

If you want to use storyboards, just drop a TextField into your storyboard and set its class to ParkedTextField. Then customize through the attributes inspector or code. Otherwise, you can write the code to initialize with frame and set the properties.

Properties

/// Constant text in the end of text field. Defaults to "".
var parkedText: String = ".slack.com" 

/// Font of parkedText. Defaults the text field's font or its bold version if it exists. 
var parkedTextFont: UIFont!

/// Color of parkedText. Defaults the font's color.
var parkedTextColor: UIColor! 


Development

  • Instead of subclassing UITextField, investigate making a UITextField extension.
  • Test with emojis.
  • Test setting placeholder and text. In some cases it breaks the parkedText.

Author

Günay Mert Karadoğan, mertkaradogan@gmail.com

License

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

Description
No description provided
Readme MIT 485 KiB
Languages
Swift 89%
Ruby 6.3%
Objective-C 4.7%