- July 11, 2025
- Mins Read
Objective-c library for tracking keyboard in iOS apps.
pod ‘NgKeyboardTracker’
To manually add to your projects:
NgKeyboardTracker
folder to your project.UIKit
.NgKeyboardTracker
encapsulates keyboard tracking for iOS apps. It provides convenience to query keyboard’s properties anywhere in your application.
You can also use NgKeyboardTracker
to implement iMessage’s text input behavior on iOS 7 (UIScrollViewKeyboardDismissModeInteractive
+ persistent inputAccessoryView
) using NgPseudoInputAccessoryViewCoordinator
.
– (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[NgKeyboardTracker sharedTracker] start]; // start tracking
return YES;
}
– (void)applicationWillTerminate:(UIApplication *)application {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
[[NgKeyboardTracker sharedTracker] stop]; // stop tracking
}
NgKeyboardTrackerDelegate
protocol.-addDelegate:
method-removeDelegate:
to stop receiving keyboard updatesKeyboard tracker’s properties:
appearanceState
: current appearance statebeginFrame
: last known begin frameendFrame
: last known framecurrentFrame
: last known current keyboard’s frameanimationDuration
: last known animation durationanimationCurve
: last known animation curveanimationOptions
: derived from animationCurve
for convenienceP.S. keyboard’s frame.size.height
system’s keyboard height plus inputAccessoryView
height.
NgPseudoInputAccessoryViewCoordinator
is NgKeyboardTracker
extension that makes it easier to implement iMessage’s text input behavior in iOS 7 with UIScrollViewKeyboardDismissModeInteractive
and persistent inputAccessoryView
.
The view controller:
loadView
to set custom UIView implementation.becomeFirstResponder
.A SwiftUI View that emits confetti with user-defined shapes, images, and text.
A colour wheel made all in SwiftUI. There are 2 different colour wheels to choose from. The first main one ...
A color picker implementation with color wheel appearance written in plain SwiftUI. It is compatible with UIColor and NSColor.
This repository is no longer maintained. Here's why: with the release of iOS 16 SwiftUI now enables most of the ...