During the beta phase of the SwiftUI additions presented during WWDC2020, Apple does not accept the submission of apps compiled with the macOS 11 beta SDK. For that reason, until the GM arrives, the version of the Companion app available in the App Store, will not be able to embed examples that use the new views and methods. Still, a new version has been submitted, that includes around 220 new entries. Although the examples will not render in the app, you will still get access to the documentation and the example’s code. In any case, if you obtained the app from the App Store, do not worry, as you can also download and install the website’s version.
In addition to the version distributed in the App Store, the Companion for SwiftUI app can also be downloaded from this website. This version is not bound by Apple’s approval, and so it provides more updating freedom. It is available now, and it includes the same content update (220 new entries). There are two versions, one compiled with the latest stable SDK (macOS 10.15), which cannot render embedded examples of new SwiftUI features. And another version, compiled with the latest macOS 11 SDK, beta 4. This version, as long as it runs on Big Sur, will properly render all the examples.
No matter how you originally acquired the Companion app (i.e., App Store or directly from this website), you can always install the versions available here. The app will look for the presence of the App Store version and will unlock itself if a valid app is found. So if you purchased the app from the App Store, please do not remove, move or rename it.
Stable version (2.1.0) – Stable version, compiled with macOS 10.15 SDK. This version contains around 220 new entries with all the additions of the SwiftUI API, except for property wrappers and WidgetKit content, which is coming very soon. Embedded examples that use new SwiftUI features will only show their code, but not a live execution of them. Install the Beta version if you would like to to be able to see a live execution of the examples.
Beta version (2.1.1) – Beta version, compiled with macOS 11 SDK, beta 5. This version contains around 220 new entries with all the additions of the SwiftUI API, except for property wrappers and WidgetKit content, which is coming very soon. When running on Big Sur, live execution of the examples is available.
IMPORTANT: Only use version 2.1.1 with macOS Big Sur beta 5. If you are still running macOS Big Sur beta 4, use version 2.0.1 instead. Due to breaking changes in the API released by Apple, running code compiled with the beta 5 on beta 4 installations my crash the app.
NEW FEATURE: Starting with 2.0.0, there is a new option to manually toggle execution of examples inside the Companion app. Since SwiftUI is still in beta, this option could prove useful if an update in the OS produces any kind of instability to the app. Disabling views will allow you to continue to read the documentation, even if a severe bug is introduced by the OS.