Popularity
1.6
Stable
Activity
0.0
Stable
56
4
5

Monthly Downloads: 0
Programming language: Swift
License: MIT License
Tags: UI     Keyboard    
Latest version: v1.2.0

KeyboardHideManager alternatives and similar libraries

Based on the "Keyboard" category

Do you think we are missing an alternative of KeyboardHideManager or a related project?

Add another 'Keyboard' Library

README

KeyboardHideManager

[Icon](Resources/keyboard_icon.png)

Language CocoaPods Compatible Platform License Awesome-ios Awesome-swift Awesome

KeyboardHideManager - codeless manager to hide keyboard by tapping on views for iOS written in Swift.

[preview](Resources/preview.png)

Structure

Features

  • [x] 3 simple actions to setup
  • [x] Multiple views setup
  • [x] Codeless usage
  • [x] Xib support

Requirements

  • Swift 3.0+
  • iOS 8.0+

Installation

CocoaPods

pod 'KeyboardHideManager', '~> 1.0'

Full CocoaPods Guide (click to expand)

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate KeyboardHideManager into your Xcode project using CocoaPods, create file Podfile with content:

platform :ios, '9.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'KeyboardHideManager', '~> 1.0'
end

Then, run the following command:

$ pod install

Close 'Your Target Name'.xcodeproj and open 'Your Target Name'.xcworkspace.

Carthage (not supported)

KeyboardHideManager cannot be used with Carthage in IB due .framework issue. Use CocoaPods or Manual install.

Manually

If you prefer not to use either of the aforementioned dependency managers, you can integrate KeyboardHideManager into your project manually.

Drag KeyboardHideManager folder in your project.

Usage

  • 1. Drag Object from Object library

[usage_1](Resources/usage_1.png)

  • 2. Setup KeyboardHideManager in Class field

[usage_2](Resources/usage_2.png)

  • 3. Connect views with targets

[usage_3](Resources/usage_3.png)

User Iteraction Enabled

Target must be UIView subclass and user iteraction enabled is on. You can set it in IB in View section: (example for UILabel)

[user_iteraction_enabled](Resources/user_iteraction_enabled.png)

or in code:

someView.isUserInteractionEnabled = true

Xib support

To use with xib you must add strong property to controller:

@IBOutlet var keyboardHideManager: KeyboardHideManager!

Otherwise it will be deinited. It is logic of Objects in xibs.

To do

  • [x] Add example
  • [x] Add tests
  • [x] Add comments
  • [ ] Add CI

License

KeyboardHideManager is released under the MIT license. See [LICENSE](./LICENSE.md) for details.


*Note that all licence references and agreements mentioned in the KeyboardHideManager README section above are relevant to that project's source code only.