Post

Replies

Boosts

Views

Activity

Reply to NSHostingView Not Working With Swift 6.0
macOS 15.1. In an example app I wrap a SwiftUI Button and an NSButton in a NSView container. When showing the container from a simple NSViewRepresentable, both work. But when I show the container in an overlay of a PDFView using PDFPageOverlayViewProvider, just the SwiftUI button does not work. I set no offsets. Both Buttons work on iOS (using UI... variants). A possible cause might be that is that text selection mode is active on Mac by default. But why would this just stop the SwiftUI button and not the NSButton from working?
Nov ’24
Reply to iOS: List selection is reset to nil when app is sent to background
The newest iOS17 beta fixes this bug.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to Xcode 15, how to uncheck "Connect via network" for physical device?
I had slow app startup times (12s) on my iPad when debugging (via cable). My iPhone, which I did not want to use for debugging, was connected via Wifi. After I connected also the iPhone, startup time on the iPad went down to 3s. After disconnecting the iPhone, startup time stayed on 3s.
Replies
Boosts
Views
Activity
Jan ’24
Reply to NSHostingView Not Working With Swift 6.0
macOS 15.1. In an example app I wrap a SwiftUI Button and an NSButton in a NSView container. When showing the container from a simple NSViewRepresentable, both work. But when I show the container in an overlay of a PDFView using PDFPageOverlayViewProvider, just the SwiftUI button does not work. I set no offsets. Both Buttons work on iOS (using UI... variants). A possible cause might be that is that text selection mode is active on Mac by default. But why would this just stop the SwiftUI button and not the NSButton from working?
Replies
Boosts
Views
Activity
Nov ’24