Skip to content

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

Notifications You must be signed in to change notification settings

CJWDevelop/SYKeyboardTextField

 
 

Repository files navigation

SYKeyboardTextField

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

Requirements

  • Swift 2
  • iOS 7.0 or later

Installation

  • Drag the file to your project

  • Insert github "441088327/SYKeyboardTextField" to your Cartfile.

  • Run carthage update.

Usage

    keyboardTextField = SYKeyboardTextField(point: CGPointMake(0, 0), width: self.view.width)
    keyboardTextField.delegate = self
    keyboardTextField.leftButtonHidden = false
    keyboardTextField.rightButtonHidden = 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 : SYKeyboardTextView = SYKeyboardTextView()
    lazy var placeholderLabel = UILabel()
    lazy var textViewBackground = UIImageView()
    lazy var leftButton = UIButton()
    lazy var rightButton = UIButton()

Author

@余书懿

License

SYKeyboardTextField is available under the MIT license.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%