Tag: Swift
All the articles with the tag "Swift".
-
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.
-
Logging in Swift
Published:• 15 min readAn in-depth exploration of Apple's unified logging system and the promising OSLogStore API that Apple removed from iOS 14 at the last minute.
-
Building with Swift Trunk Development Snapshots
Published:• 4 min readA troubleshooting guide for building with Swift trunk development snapshots, documenting compilation errors, linker issues, and their solutions.
-
How to Fix LLDB: Couldn't IRGen Expression
Published:• 10 min readSolving the mysterious LLDB 'Couldn't IRGen expression' error by investigating Swift module path serialization and discovering that removing dSYM bundles fixes debugging issues.
-
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.
-
The Great Mac Catalyst Text Input Crash Hunt
Published:• 8 min readDeep-dive investigation and fix for a Mac Catalyst text input crash caused by a race condition in Apple's RemoteTextInput framework.
-
Swizzling in Swift
Published:• 10 min readA deep dive into safe method swizzling techniques in Swift, covering common pitfalls and the correct way to implement dynamic super calls.
-
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.
-
Researching ResearchKit
Published:• 6 min readAnalyze Apple's first major open-source project ResearchKit to discover interesting implementation details and practical iOS development solutions.