compose-multiplatform
compose-multiplatform copied to clipboard
FR: `@Preview` should work from Common Layer
I realize having @Preview
work is odd in the common layer, but perhaps there can be a new Annotation provided. Something like @JvmPreview
or something to specify which platfrom it should run the preview for. Not being able to get Previews in the common layer, makes the common layer significantly more annoying to work with.
Absolutely agree! I started my project but missing this feature makes development much slower! 😞 With new wizard template with "composeApp" folder I haven't "Code/Splite/Design" buttons at all in Android Studio! 😡
Preview feature is very important, but all template projects just ignore it. Please pay more attention for preview in shared (composeApp/commonMain) files. This will be a really big argument for using your solution (kotlin and compose multiplatform) for cross-platform development! 🫡
this looks like a duplicate of #2045
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.