KeyboardHideManager
  • March 11, 2024

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

Structure


Features


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

Requirements


  • Swift 3.0+
  • iOS 8.0+

Installation


CocoaPods

pod ‘KeyboardHideManager’, ‘~> 1.0’

Full CocoaPods Guide (click to expand)

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

  1. Setup KeyboardHideManager in Class field

  1. Connect views with targets

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)

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


  •  Add example
  •  Add tests
  •  Add comments
  •  Add CI

GitHub


View Github

#awesome #awesome-list #cocoapods #codeless #framework #ib #ios #keyboard #library #manager #storyboard #swift #swift-3 #swift-framework #swift3 #touch
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