compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

FR: `@Preview` should work from Common Layer

Open ScottPierce opened this issue 3 years ago • 1 comments

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.

ScottPierce avatar Dec 15 '21 20:12 ScottPierce

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! 🫡

brucemax avatar Feb 12 '24 02:02 brucemax

this looks like a duplicate of #2045

bartekpacia avatar May 30 '24 00:05 bartekpacia

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

okushnikov avatar Jul 14 '24 14:07 okushnikov