Tag:UIKit
All the articles with the tag "UIKit".
Automatic Observation Tracking in UIKit and AppKit: The Feature Apple Forgot to Mention
Published:• 8 min readDiscover how iOS 18's hidden automatic observation tracking brings SwiftUI-like reactive programming to UIKit and AppKit, making your UI code cleaner and more maintainable.
Fixing keyboardShortcut in SwiftUI
Published:• 7 min readDebugging and fixing a SwiftUI keyboardShortcut bug that fails when mixing SwiftUI with UIKit through reverse engineering and LLDB analysis.
Supporting Both Tap and Long Press on a Button in SwiftUI
Published:• 6 min readCreating a SwiftUI button that supports both tap and long-press gestures by bridging to UIKit when SwiftUI's gesture system fails on Catalyst.
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.
UITableViewController designated initializer woes
Published:• 3 min readNavigate the complications of subclassing UITableViewController after iOS 8.3 introduced designated initializers that break proper initialization patterns.
The curious case of rotation with multiple windows on iOS 8
Published:• 2 min readDiagnose and solve an iOS 8 regression where unwanted rotation occurs in apps using multiple windows despite explicit configuration.
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.
Fixing UITextView On iOS 7
Published:• 2 min readFix the severe scrolling and content positioning bugs in iOS 7's UITextView with PSPDFTextView, a drop-in replacement.
Fixing What Apple Doesn't
Published:• 2 min readFix the misaligned label in iOS 7's printer controller by swizzling UIPrinterSearchingView's layoutSubviews method.



