Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AlexLittlejohn/ALTextInputBar
An auto growing text input bar for messaging apps.
https://github.com/AlexLittlejohn/ALTextInputBar
Last synced: 3 months ago
JSON representation
An auto growing text input bar for messaging apps.
- Host: GitHub
- URL: https://github.com/AlexLittlejohn/ALTextInputBar
- Owner: AlexLittlejohn
- License: mit
- Archived: true
- Created: 2015-04-25T12:46:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-07-01T08:12:04.000Z (over 2 years ago)
- Last Synced: 2024-04-24T18:58:18.261Z (6 months ago)
- Language: Swift
- Size: 217 KB
- Stars: 260
- Watchers: 8
- Forks: 51
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - ALTextInputBar - An auto growing text input bar for messaging apps. (UI / TextField & TextView)
- awesome-ios-star - ALTextInputBar - An auto growing text input bar for messaging apps. (UI / TextField & TextView)
README
# :warning: This project is unmaintained
# ALTextInputBar
An auto growing text input bar for messaging apps. Written in Swift.
ALTextInputBar is designed to solve a few issues that folks usually encounter when building messaging apps.![With some text](https://cloud.githubusercontent.com/assets/932822/7333301/a510aa22-eb6a-11e4-988b-ac12e4e6c363.png)
![With lots of text](https://cloud.githubusercontent.com/assets/932822/7333307/cf101c04-eb6a-11e4-9a80-799cf3353a70.png)### Features
- Simple to use and configure
- Automatic resizing based on content
- Interactive dismiss gesture support### Installation & Requirements
This project requires Xcode 8.0 to run and compiles with swift 3.0
ALTextInputBar is available on [CocoaPods](http://cocoapods.org). Add the following to your Podfile:
```ruby
pod 'ALTextInputBar'
```### Usage
This is the minimum configuration required to attach an input bar to the keyboard.
```swift
class ViewController: UIViewController {let textInputBar = ALTextInputBar()
// The magic sauce
// This is how we attach the input bar to the keyboard
override var inputAccessoryView: UIView? {
get {
return textInputBar
}
}// Another ingredient in the magic sauce
override var canBecomeFirstResponder: Bool {
return true
}
}
```## License
ALTextInputBar is available under the MIT license. See the LICENSE file for more info.