InputBarAccessoryView alternatives and similar libraries
Based on the "TextField & TextView" category.
Alternatively, view InputBarAccessoryView alternatives based on common mentions on social networks and blogs.
-
JVFloatLabeledTextField
UITextField subclass with floating labels - inspired by Matt D. Smith's design: http://dribbble.com/shots/1254439--GIF-Mobile-Form-Interaction?list=users -
TextFieldEffects
Custom UITextFields effects inspired by Codrops, built using Swift -
PYSearch
๐ An elegant search controller which replaces the UISearchController for iOS (iPhone & iPad) . -
SkyFloatingLabelTextField
A beautiful and flexible text field control implementation of "Float Label Pattern". Written in Swift. -
Reel Search
:octocat: ๐ RAMReel is a UI controller that allows you to choose options from a list. Swift UI library made by @Ramotion -
StatefulViewController
Placeholder views based on content, loading, error or empty states -
NextGrowingTextView
๐ The next in the generations of 'growing textviews' optimized for iOS 8 and above. -
MLPAutoCompleteTextField
UITextfield subclass with autocomplete menu. For iOS. -
SearchTextField
UITextField subclass with autocompletion suggestions list -
RPFloatingPlaceholders
UITextField and UITextView subclasses with placeholders that change into floating labels when the fields are populated with text. -
AnimatedTextInput
Animated UITextField and UITextView replacement for iOS -
GrowingTextView
An UITextView in Swift. Support auto growing, placeholder and length limit. -
RSKGrowingTextView
A light-weight UITextView subclass that automatically grows and shrinks. -
KMPlaceholderTextView
A UITextView subclass that adds support for multiline placeholder written in Swift. -
UITextField-Shake
UITextField category that adds shake animation -
AutocompleteField
Subclass of UITextField that shows inline suggestions while typing. -
InstantSearch iOS
โก๏ธ A library of widgets and helpers to build instant-search applications on iOS. -
SelectableTextView
A text view that supports selection and expansion -
TweeTextField
Lightweight set of text fields with nice animation and functionality. ๐ Inspired by https://uimovement.com/ui/2524/input-field-help/ -
VMaskTextField
VMaskTextField is a library which create an input mask for iOS. -
UITextField-Navigation
๐โโ๏ธ UITextField-Navigation makes it easier to navigate between UITextFields and UITextViews -
TextFieldCounter
UITextField character counter with lovable UX ๐. No math skills required ๐. -
IQDropDownTextField
TextField with DropDown support using UIPickerView -
PasswordTextField
A custom TextField with a switchable icon which shows or hides the password and enforce good password policies -
DTTextField
DTTextField is a custom textfield with floating placeholder and error label -
EmojiTextView
Tap to swap out words with emojis. Inspired by Messages.app on iOS 10. -
ARAutocompleteTextView
ARAutocompleteTextView is a subclass of UITextView that automatically displays text suggestions in real-time. This is perfect for automatically suggesting the domain as a user types an email address, #hashtag or @alexruperez. -
CocoaTextField
Apple TextField created according to the Material.IO guidelines of 2019. Featured at Medium. -
RSKPlaceholderTextView
A light-weight UITextView subclass that adds support for placeholder. -
styled-text
Declarative text styles and streamlined Dynamic Type support for iOS -
AwesomeTextField
Awesome TextField is a nice and simple libriary for iOS and Mac OSX. It's highly customisable and easy-to-use tool. Works perfectly for any registration or login forms in your app. -
CBPinEntryView
A customisable view for entering arbitrary length pins, codes or passwords in iOS. Supports iOS 12 one time codes. -
ModernSearchBar
The famous iOS search bar with auto completion feature implemented. -
CHIOTPField
CHIOTPField is a set of textfields that can be used for One-time passwords, SMS codes, PIN codes, etc. Mady by @ChiliLabs - https://chililabs.io -
Streamoji
:godmode: Custom emoji rendering library for iOS apps with support for GIF & still images - plug-in extension for UITextView - performance, cache โ - Made with ๐ by @GetStream -
MBAutoGrowingTextView
An auto-layout base UITextView subclass which automatically grows with user input and can be constrained by maximal and minimal height -
Tagging
A TextView that provides easy to use tagging feature for Mention or Hashtag -
SRKControls
A Custom control which turns UITextfield to item-picker & date-picker. -
MVAutocompletePlaceSearchTextField
iOS - Subclass of UITextField to achieve autocompletion for Place Search like Google Places, Uber and Much more apps having maps. -
RSFloatInputView
A Float Input View with smooth animation and supporting icon and seperator written with Swift -
AutoCompleteTextField
TextField with smart suggestion -
CurrencyTextField
UITextField that automatically formats text to display in the currency format -
PLCurrencyTextField
UITextField that support currency in the right way. -
NxEnabled
Library that allows you binding `enabled` property of button with textable elements (TextView, TextField) -
MeasurementTextField
UITextField-based control for (NS)Measurement values input.
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of InputBarAccessoryView or a related project?
README
[Image](./Screenshots/Preview.gif)
InputBarAccessoryView
Features
- [x] Autocomplete text with @mention, #hashtag or any other prefix
- [x] A self-sizing
UITextView
with an optional fixed height (can be replaced with any other view) - [x] Image paste support
- [x] Autocomplete attributed text highlighting
- [x] Reactive components that respond to given events
- [x] Top/Bottom/Left/Right
InputStackView
s that act as toolbars to place buttons - [x]
RxSwift
/RxCocoa
Support withRxExtensions
Cocoapod subspec - [x] Drop in attachment view for file/photo management
- [x] Plugin support for your own
InputPlugin
s - [x] Compatible with all iPhones and iPads
- [x] RTL Support
Installation via Swift Package Manager (SPM)
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift
compiler.
Once you have your Swift package set up, adding InputBarAccessoryView as a dependency is as easy as adding it to the dependencies value of your Package.swift.
dependencies: [
.package(url: "https://github.com/nathantannar4/InputBarAccessoryView.git", .upToNextMajor(from: "5.2.0"))
]
You can also add it via XCode SPM editor with URL:
https://github.com/nathantannar4/InputBarAccessoryView.git
To make RxSwift
/RxCocoa
extensions work you need to explicitly import Rx
dependencies.
Installation via CocoaPods
# Swift 5.5
pod 'InputBarAccessoryView'
# Swift 5.0
pod 'InputBarAccessoryView', '5.1.0'
Installation via Carthage
# Swift 5.5
github "nathantannar4/InputBarAccessoryView"
# Swift 5.0
github "nathantannar4/InputBarAccessoryView" "5.1.0"
Requirements
iOS 12.0+ Swift 5.5
The latest iOS 11 release is v5.1.0
The latest iOS 9 + iOS 10 release is v4.3.3
The latest Swift 5.0 release is v5.1.0
The latest Swift 4.2 release is v4.2.2
Documentation
[Getting Started](./GETTING_STARTED.md)
See the Example project to see how you can make the iMessage, Slack, Facebook and GitHawk input bars!
Example Usage
Featured In
Add your app to the list of apps using this library and make a pull request.
MessageKit (renamed to MessageInputBar)
MessageViewController (Autocomplete Highlighting Algorithm)
See Also
iMessage style TypingIndicator for chat apps
Latest Releases
5.5.0
- Update SPM tools to Swift 5.5
- Added new optional delegate method for custom attachments size
- Added new animations for left/right stack view constraints
5.4.0
- Make sure framework is ready for XCode 13
- Fix availability in AppExtensions
- Fix Package.swift to support iOS 12+ only
5.3.0
- Allow setting
canBecomeFirstResponder
- Fix interactive keyboard dismissal lag
- Add example implemntation of
sendButton
animation
5.2.3
- Fixed appendSpaceOnCompletion inserting space at wrong location
5.2.2
- Added an optional offset in KeyboardManager.bind(tableView:)
- Change reuseIdentifier from
public
toopen
to allow inheritance - Fix send button loading indicator for dark mode
- Fix iOS 14 UIPasteboard system notification with images
5.2.0
- Drop support for iOS 11 and bump minimum version to iOS 12+
- Support Swift 5.3 and higher for XCode 12
See [CHANGELOG](./CHANGELOG.md) for more details and older releases.
Find a bug? Open an issue!
Layout
The layout of the InputBarAccessoryView
is made of of 4 InputStackView
's and an InputTextView
. The padding of the subviews can be easily adjusted by changing the padding
and textViewPadding
properties. The constraints will automatically be updated.
It is important to note that each of the InputStackView
's to the left and right of the InputTextView
are anchored by a width constraint. This way the InputTextView
will always fill the space inbetween in addition to providing methods that can easily be called to hide all buttons to the right or left of the InputTextView
by setting the width constraint constant to 0. The bottom and top stack views are not height constraint and rely on their intrinsicContentSize
func setLeftStackViewWidthConstant(to newValue: CGFloat, animated: Bool)
func setRightStackViewWidthConstant(to newValue: CGFloat, animated: Bool)
Reactive Hooks
Each InputBarButtonItem
has properties that can hold actions that will be executed during various hooks such as the button being touched, the UITextView
text changing and more! Thanks to these easy hooks with a few lines of code the items can be easily resized and animated similar to that of the Facebook messenger app.
// MARK: - Hooks
public typealias InputBarButtonItemAction = ((InputBarButtonItem) -> Void)
private var onTouchUpInsideAction: InputBarButtonItemAction?
private var onKeyboardEditingBeginsAction: InputBarButtonItemAction?
private var onKeyboardEditingEndsAction: InputBarButtonItemAction?
private var onKeyboardSwipeGestureAction: ((InputBarButtonItem, UISwipeGestureRecognizer) -> Void)?
private var onTextViewDidChangeAction: ((InputBarButtonItem, InputTextView) -> Void)?
private var onSelectedAction: InputBarButtonItemAction?
private var onDeselectedAction: InputBarButtonItemAction?
private var onEnabledAction: InputBarButtonItemAction?
private var onDisabledAction: InputBarButtonItemAction?
Author
Nathan Tannar - https://nathantannar.me Jakub Kaspar - https://jakubkaspar.dev
License
Distributed under the MIT license. See LICENSE
for more information.
*Note that all licence references and agreements mentioned in the InputBarAccessoryView README section above
are relevant to that project's source code only.