All Projects → sgr-ksmt → FormToolbar

sgr-ksmt / FormToolbar

Licence: MIT license
Simple, movable and powerful toolbar for UITextField and UITextView.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to FormToolbar

TTInputVisibilityController
Lightweight controller to keep your inputs visible when the keyboard is presented.
Stars: ✭ 21 (-75.29%)
Mutual labels:  keyboard, textview, textfield
Tkkeyboardcontrol
TKKeyboardControl adds keyboard awareness and scrolling dismissal (like iMessages app) to any view with only 1 line of code for Swift.
Stars: ✭ 110 (+29.41%)
Mutual labels:  keyboard, textview, textfield
STTextView
📝 STTextView is a light-weight library that adds a placeholder to the UITextView.
Stars: ✭ 36 (-57.65%)
Mutual labels:  swift-framework, textview
Taniwhatextfield
My first cocoapod framework
Stars: ✭ 26 (-69.41%)
Mutual labels:  swift-framework, textfield
Swiftuix
Extensions and additions to the standard SwiftUI library.
Stars: ✭ 4,087 (+4708.24%)
Mutual labels:  toolbar, textview
LycricsTextView
No description or website provided.
Stars: ✭ 14 (-83.53%)
Mutual labels:  textview, textfield
Stringformatter
Simple Text Formetter (Credit Card Number, Phone Number, Serial Number etc.) Can be used in all text inputs according to the format pattern. If desired, large minor character restrictions can be made in the format pattern.
Stars: ✭ 231 (+171.76%)
Mutual labels:  textview, textfield
NotchToolkit
Use the iPhone X notch in creative ways 👩‍🎨👨‍🎨.
Stars: ✭ 55 (-35.29%)
Mutual labels:  toolbar, swift-framework
Inputkit
📝InputKit, an Elegant Kit to limits your input text, inspired by BlocksKit, written in both Objective-C & ⚡️Swift.
Stars: ✭ 420 (+394.12%)
Mutual labels:  textview, textfield
Keyboardhidemanager
Codeless manager to hide keyboard by tapping on views for iOS written in Swift
Stars: ✭ 57 (-32.94%)
Mutual labels:  keyboard, swift-framework
Nativescript Keyboard Toolbar
⌨️🛠Add a customizable toolbar on top of the soft keyboard
Stars: ✭ 66 (-22.35%)
Mutual labels:  keyboard, toolbar
Literoute
LiteRoute is easy transition for your app. Written on Swift 4
Stars: ✭ 90 (+5.88%)
Mutual labels:  swift-framework, easy-to-use
iOSUtilitiesSource
IOS Utilities Library for Swift
Stars: ✭ 46 (-45.88%)
Mutual labels:  keyboard, textfield
Keyboardtextfield
KeyboardTextField is a lightweight, simple, non-invasive keyboard accompanying input box! Write in Swift!
Stars: ✭ 170 (+100%)
Mutual labels:  keyboard, textfield
Keyboardavoidanceswiftui
How to move SwiftUI view up when keyboard appears https://www.vadimbulavin.com/how-to-move-swiftui-view-when-keyboard-covers-text-field/
Stars: ✭ 198 (+132.94%)
Mutual labels:  keyboard, textfield
rclone4pi
rclone4pi - Easy Install of rclone to Raspberry Pi Computer with automated folder sync demo
Stars: ✭ 91 (+7.06%)
Mutual labels:  easy-to-use
SuperShapeView
A smart custom view support shapes for ImageView, TextView ,EditView ,instead of shape.xml.(自定义形状控件,支持TextView,EditText)
Stars: ✭ 60 (-29.41%)
Mutual labels:  textview
wui
Collection of GUI widgets for the web
Stars: ✭ 44 (-48.24%)
Mutual labels:  toolbar
PermissionManager
This Library automatically search for permission in androidmanifests file and request for the same
Stars: ✭ 45 (-47.06%)
Mutual labels:  easy-to-use
olturf
A Turf toolbar for OpenLayers.
Stars: ✭ 30 (-64.71%)
Mutual labels:  toolbar

FormToolbar

Simple, movable and powerful toolbar for UITextField and UITextView.

GitHub release Language Carthage Compatible CocoaPods  Compatible

Sample GIF Capture
gif gif

Feature

  • Easy to use. (Just add inputs to toolbar).
  • available to use UITextField and UITextView. (mix ok!!)

Usage

Getting Started

  • ViewController has two text fields and one text view.
class ViewController: UIViewController {
    @IBOutlet private weak var emailTextField: UITextField!
    @IBOutlet private weak var passwordTextField: UITextField!
    @IBOutlet private weak var profileTextView: UITextView!
}
  • Create Toolbar (and attach toolbar to textfield's inputAccessoryView)
    self.toolbar = FormToolbar(inputs: [emailTextField, passwordTextField, profileTextView])
  • Call update() on UITextField's delegate method. (or UItextView's delegate method.)
func textFieldDidBeginEditing(_ textField: UITextField) {
    toolbar.updater()
}
  • "Is that all?" - Yeah, that is all. 👍

NOTE: There is demo project!!

Advanced

  • Back/Forward button type
toolbar.direction = .leftRight
toolbar.direction = .upDown

Left-Right
gif

Up-Down
gif

  • "Done" button's title
toolbar.doneButtonTitle = "👇"

gif

  • Change button color
toolbar.backButtonTintColor = .red
toolbar.forwardButtonTintColor = .green
toolbar.doneButtonTintColor = .purple

// or set all together
toolbar.setButtonsTintColor(.red)

gif

  • Get current/previous/next input
toolbar.currentInput
toolbar.previousInput
toolbar.nextInput

if let activeTextField = toolbar.currentInput as? UITextField {
    // ...
}
  • Update Inputs
let newInputs: [FormInput] = [emailTextField, passwordTextField]
toolbar.set(inputs: newInputs)
  • Go forward when UITextField's return key pressed
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
    toolbar.goForward()
    return true
}

Requirements

  • iOS 9.0+
  • Xcode 8.2.1+
  • Swift 3.0+

Installation

Carthage

  • Add the following to your Cartfile:
github "sgr-ksmt/FormToolbar" ~> 1.0
  • Run carthage update
  • Add the framework as described.
    Details: Carthage Readme

CocoaPods

FormToolbar is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'FormToolbar', '~> 1.0'

and run pod install

Manually Install

Download all *.swift files and put your project.

Change log

Change log is here.

Communication

  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.💪

License

FormToolbar is under MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].