In my case I wanted to make an automation for OBS. The best way for me to share a window is to make a macOS Screen Capture source and chose there Window Capture method. The goal was to find the ID, which changes on reopening. The journey starts with CGWindowListCopyWindowInfo, but it takes unexpected turn. At least for me.
RE: https://mastodon.social/@swiftlang/116286524514684047
This release brings a lot of “finally” updates. It will remove a lot of friction!
My new SwiftUI book is finally out! 🎉
I wrote "The SwiftUI Way" for developers who feel like they are fighting the framework as their projects grow in complexity. The book will help you align your code with SwiftUI's internal expectations to avoid common pitfalls.

To combat the issue of online exclusion, this book covers considerations mobile developers, or anyone creating mobile experiences, can use to make mobile work better for those with disabilities—mental or physical—and how to create a better experience for everyone.