Tag: SwiftUI
All the articles with the tag "SwiftUI".
-
Showing Settings from macOS Menu Bar Items: A 5-Hour Journey
Published:• 6 min readWhy something as simple as showing a settings dialog from a macOS menu bar app took me 5 hours to figure out, and requires 50 lines of code for what should be a one-liner.
-
Top-Level Menu Visibility in SwiftUI for macOS
Published:• 3 min readWorking around SwiftUI's CommandsBuilder limitations to conditionally show top-level menus on macOS using direct AppKit integration.
-
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.
-
The State of SwiftUI
Published:• 7 min readTesting SwiftUI's production readiness in iOS 14 and macOS Big Sur through Apple's Fruta sample app, revealing performance issues and platform-specific limitations.