https://github.com/furkanhatipoglu/multiline-textfield
https://github.com/furkanhatipoglu/multiline-textfield
androidstyle floating floating-labels multiline-textfield pod swift textfield ui-components
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/furkanhatipoglu/multiline-textfield
- Owner: furkanhatipoglu
- License: mit
- Created: 2018-01-29T20:51:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-30T21:48:57.000Z (over 8 years ago)
- Last Synced: 2025-10-23T09:56:04.912Z (8 months ago)
- Topics: androidstyle, floating, floating-labels, multiline-textfield, pod, swift, textfield, ui-components
- Language: Swift
- Size: 147 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MultilineTextField

MultilineTextField is an Android style textfield that supports multiline text. Moreover, MultilineTextField includes a seperator line and placeholder label.
## Getting Started
### Prerequisites
- Swift 3
- Xcode 8
### Installing
Add this line on your Podfile file.
```
pod 'FHMultilineTextField'
```
And run on your terminal
```
pod install
```
Don't forget the work on your .xcworkspace file.
### Usage
An example
```swift
let multilineTextField = MultilineTextField(frame: CGRect(x: 20, y: 100, width: view.bounds.width - 40, height: 70))
multilineTextField.lineColorSelected = UIColor.red // default is UIColor.darkGray
multilineTextField.lineColorUnselected = UIColor.black // default is UIColor.darkGray
multilineTextField.placeHolderText = "Address:"
multilineTextField.placeHolderTextColor = UIColor.black // default is UIColor.darkGray
multilineTextField.textColor = UIColor.black // default is UIColor.darkGray
multilineTextField.textView.returnKeyType = .done
multilineTextField.endEditingWithReturnButton = true // default is false
view.addSubview(multilineTextField)
```
### To-Do
- [ ] Swift 4 support
- [ ] Line animations
- [ ] More customization
## Built With
* [GrowingTextView](https://github.com/KennethTsang/GrowingTextView)
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details