diff --git a/README.md b/README.md index af885cc..1265907 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,32 @@ textField.type = .tappable(action: {textField in textField.text = "Selected thin ``` Tap on the field, do an action, display a result in text field. +## Customization + +### Color +You can change color of placeholder, entered text, line like this: +```swift +textField.placeholderTopColor = .blue +textField.placeholderBottomColor = .brown + +textField.enteredTextColor = .orange + +textField.lineColor = .green +``` +Result: + + + + +### Text Alignment +In order to change text alignment of placeholder and text field use this property: +```swift +textField.isLeftTextAlignment = true +``` +Result: + + + ## License Copyright (c) 2016 Touch Instinct diff --git a/UIAnimatedTextField/Screenshots/custom1.png b/UIAnimatedTextField/Screenshots/custom1.png new file mode 100644 index 0000000..e3b51bc Binary files /dev/null and b/UIAnimatedTextField/Screenshots/custom1.png differ diff --git a/UIAnimatedTextField/Screenshots/custom2.png b/UIAnimatedTextField/Screenshots/custom2.png new file mode 100644 index 0000000..c641bff Binary files /dev/null and b/UIAnimatedTextField/Screenshots/custom2.png differ diff --git a/UIAnimatedTextField/Screenshots/custom3.png b/UIAnimatedTextField/Screenshots/custom3.png new file mode 100644 index 0000000..07d6593 Binary files /dev/null and b/UIAnimatedTextField/Screenshots/custom3.png differ