Tag: Runtime
All the articles with the tag "Runtime".
-
Forbidden Controls in Catalyst: Optimize Interface for Mac
Published:• 7 min readInvestigating why certain UIKit controls throw runtime exceptions in Catalyst's 'Optimize Interface for Mac' mode and discovering which controls are forbidden.
-
Disabling Keyboard Avoidance in SwiftUI's UIHostingController
Published:• 6 min readFixing unwanted keyboard avoidance behavior in UIHostingController using runtime dynamic subclassing to override keyboard notification handling methods.
-
InterposeKit — Elegant Swizzling in Swift
Published:• 3 min readIntroducing InterposeKit, a modern Swift library for elegant method swizzling that leverages Swift 5.2's callAsFunction for type-safe Objective-C method interception.
-
UIKit Debug Mode
Published:• 2 min readUnlock hidden UIKit debugging features by bypassing Apple's InternalBuild checks to access secret flags for logging touches, gestures, and animations.
-
Retrofitting containsString: on iOS 7
Published:• 1 min readBackport iOS 8's convenient NSString containsString: method to iOS 7 using runtime patching that won't conflict with Apple's implementation.
-
A Story About Swizzling "the Right Way™" and Touch Forwarding
Published:• 8 min readLearn why traditional method swizzling breaks UIKit's touch forwarding and discover a better approach that preserves _cmd integrity.
-
Hacking with Aspects
Published:• 3 min readExplore how Apple detects popover presentation in UIImagePickerController and learn to bypass the restriction using my Aspects library.
-
Fixing What Apple Doesn't
Published:• 2 min readFix the misaligned label in iOS 7's printer controller by swizzling UIPrinterSearchingView's layoutSubviews method.