John Siracusa on Nostr: My SwiftUI view and its containing NSHostingView/NSWindow are not getting along, and ...
My SwiftUI view and its containing NSHostingView/NSWindow are not getting along, and I think it's an Apple bug. I did my best to isolate and explain it in a sample project:
https://github.com/siracusa/SwiftUIJitterBugI filed this as FB12453748.
If any SwiftUI and/or AppKit folks want to tackle a subtle stumper, please take a look.
Published at
2023-06-26 14:59:00Event JSON
{
"id": "36cc4364c50a96ecef9651b4b547527f6dbe0fe730fb76163234582fe5e2b373",
"pubkey": "f83dfad0f8d080042fb53d1c883ab96b5c11a61b174dca15d050a64c61b7287b",
"created_at": 1687791540,
"kind": 1,
"tags": [
[
"mostr",
"https://mastodon.social/users/siracusa/statuses/110611106375982347"
]
],
"content": "My SwiftUI view and its containing NSHostingView/NSWindow are not getting along, and I think it's an Apple bug. I did my best to isolate and explain it in a sample project: https://github.com/siracusa/SwiftUIJitterBug\n\nI filed this as FB12453748.\n\nIf any SwiftUI and/or AppKit folks want to tackle a subtle stumper, please take a look.\n\nhttps://files.mastodon.social/media_attachments/files/110/611/106/109/662/820/original/b9ed89e0f38e2a1d.png",
"sig": "81e22cbc31cd48230424af438ec7f17ddf06f924352d4dccec49790cdda9a50d37dd7ca44e881cb3120df12f73afa03fc5a6ea90154121937f9579519df08eed"
}