Turns out that this is due to Xcode 16 using debug builds for previews as well, thus erasing `some` return types to their `@ _typeEraser` type (if any).
Thanks @joe for providing this insight and finding the build setting to turn this off: https://f.duriansoftware.com/@joe/113170928606701687
However, I haven't found a way to disable it in SPM. But for #SwiftUI, I simply “opened up" the `AnyView` wrapper using `Mirror`.
@[email protected] Yeah, previews and debug builds now share build products, so views in debug builds get the AnyView wrapping. You can set SWIFT_ENABLE_OPAQUE_TYPE_ERASURE=NO in the build settings to disable this separately (though this probably breaks previews, so you might want to set up a separate scheme if you use previews)