ALTextInputBar
  • October 26, 2023

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.

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. Add the following to your Podfile:

pod ‘ALTextInputBar’

Usage

This is the minimum configuration required to attach an input bar to the keyboard.

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
}
}

GitHub


View Github

#ios #swift #textinputbar #xcode
YOU MIGHT ALSO LIKE...
exyte

     

camerakit-ios

CameraKit helps you add reliable camera to your app quickly. Our open source camera platform provides consistent capture results, service ...

HybridCamera

[video width="192" height="416" mp4="https://swiftgit.com/wp-content/uploads/2024/12/68747470733a2f2f7261776769742e636f6d2f7374796c656b69742f696d672f6d61737465722f7669645f6564697465645f325f326d622e676966.mp4"][/video]

TakeASelfie

An iOS framework that uses the front camera, detects your face and takes a selfie. This api opens the front ...

iOS-Depth-Sampler

Code examples of Depth APIs in iOS