Skip to content

KeyboardTextField is a lightweight, simple, non-invasive keyboard accompanying input box! Write in Swift!

Notifications You must be signed in to change notification settings

yushuyi/KeyboardTextField

Repository files navigation

KeyboardTextField is a lightweight, simple, non-invasive keyboard accompanying input box! Write in Swift!

Requirements

  • Swift 4
  • iOS 8.0 or later

Installation

  • Drag the file to your project

Usage

    keyboardTextField = KeyboardTextField(point: CGPoint(x: 0, y: 0), width: self.view.bounds.size.width)
    keyboardTextField.delegate = self
    keyboardTextField.isLeftButtonHidden = false
    keyboardTextField.isRightButtonHidden = false
    keyboardTextField.autoresizingMask = [UIViewAutoresizing.flexibleWidth , UIViewAutoresizing.flexibleTopMargin]
    self.view.addSubview(keyboardTextField)
    keyboardTextField.toFullyBottom()

How to custom UI Style ?

    //UI
    lazy var keyboardView = UIView()
    lazy var textView : KeyboardTextView = KeyboardTextView()
    lazy var placeholderLabel = UILabel()
    lazy var textViewBackground = UIImageView()
    lazy var leftButton = UIButton()
    lazy var rightButton = UIButton()

Author

@余书懿

License

KeyboardTextField is available under the MIT license.

About

KeyboardTextField is a lightweight, simple, non-invasive keyboard accompanying input box! Write in Swift!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages