Description
I want to override shared data for the preview. The following code works fine on iOS, but has no effect on macOS. I am on the latest released versions.
The attached screen shots have both the code and the output in the preview.
The iOS version correctly shows ["Mock"] while the macOS version just shows an empty array: [].
Checklist
Expected behavior
I expect that I can override the shared data.
Actual behavior
I can override the shared data for #Preview in iOS, but not in macOS.
Reproducing project
iOS: SharingTest.zip
macOS: SharingTestMac.zip
Sharing version information
2.7.2
Destination operating system
iOS 18.6
Xcode version information
16.4
Swift Compiler version information
swift-driver version: 1.120.5 Apple Swift version 6.1.2 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
Target: arm64-apple-macosx15.0
Description
I want to override shared data for the preview. The following code works fine on iOS, but has no effect on macOS. I am on the latest released versions.
The attached screen shots have both the code and the output in the preview.
The iOS version correctly shows
["Mock"]while the macOS version just shows an empty array:[].Checklist
mainbranch of this package.Expected behavior
I expect that I can override the shared data.
Actual behavior
I can override the shared data for
#Previewin iOS, but not in macOS.Reproducing project
iOS: SharingTest.zip
macOS: SharingTestMac.zip
Sharing version information
2.7.2
Destination operating system
iOS 18.6
Xcode version information
16.4
Swift Compiler version information