kv
06/16/2024, 4:51 PMimplementation(compose.components.uiToolingPreview)
is in the commonMain dependencies but when I use the @Preview
annotation to compose functions in either common or desktop modules, I do not see the compose preview icon in Android Studio
The annotation imports import org.jetbrains.compose.ui.tooling.preview.Preview
- is this the correct one?Seth Lopez
06/16/2024, 5:22 PMandroidx.compose.desktop.ui.tooling.preview.Preview
to get @Preview
to work with the Compose Multiplatform IDE Support plugin in IntelliJSeth Lopez
06/16/2024, 5:22 PMcompose.components.uiToolingPreview
is a thing, honestlykv
06/16/2024, 5:32 PMandroidx.compose.desktop.ui.tooling.preview
dependencies to commonMain?Seth Lopez
06/16/2024, 5:44 PMandroidx.compose.desktop.ui.tooling.preview.Preview
to get it to work. if you do a search for androidx.compose.desktop.ui.tooling.preview.Preview
in this slack, I think there may be some results that can help youkv
06/16/2024, 6:33 PMdesktopMain
module but not commonMain
.
I've created an issue at CMP-1550 to find out if there's a canonical way to configure this. Feel free to contribute to this issueChrimaeon
06/16/2024, 6:40 PMkv
06/16/2024, 8:15 PMeygraber
06/16/2024, 10:24 PM