I did some more testing by adding a regular NSView to the NSViewController for an NSWindow along with an NSHostingView (treated by AppKit Integration as an NSView). What I found is that the regular instances of NSView() accept user interaction but the NSHostingView gets ignored even though it is a return type of NSView. Somehow between Swift 5 and 6, NSHostingView is only partially usable now. You can use it to render images to an NSWindow but can't interact with it any longer. Is there something different in the NSHostingView return type of NSView that somehow got reconfigured in the background so as to prevent user interaction in Swift 6? NSHostingView functionally in Swift 5 somehow got degraded when switching to Swift 6.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: