https://github.com/aryaxt/textinputbar
A text input bar that is keyboard aware, and resizes its content based on the amount of text
https://github.com/aryaxt/textinputbar
Last synced: 5 months ago
JSON representation
A text input bar that is keyboard aware, and resizes its content based on the amount of text
- Host: GitHub
- URL: https://github.com/aryaxt/textinputbar
- Owner: aryaxt
- License: mit
- Created: 2015-08-16T15:28:18.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-09-25T09:45:17.000Z (over 9 years ago)
- Last Synced: 2024-12-29T23:21:55.150Z (over 1 year ago)
- Language: Swift
- Size: 91.8 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TextInputBar
A text input bar that is keyboard aware, and resizes its content based on the amount of text

Features:
- Text view automatically resizes based on content
- Allows setting max size for text view height
- If the outlet to the scrollView is set, the contentInset is automatically adjusted to ensure that the keyboard isn't cvering the content
- No need to write any setup code
Instruction
- Drag and drop a UIToolbar to IB (or init in code)
- Change its class to TextInputBar
- Pin toolbar to bottom layout guide
- Set the delegate to the viewController (Can be done both in code or IB)
- Set the scrollView outlet if you have one (Can be done both in code or IB)
- Set maximum size of textview (Can be done both in code or IB)