is there a way to set the @Preview api level to default to 33 without having to change every single one? I found that I started having rendering problems everywhere, but adding apiLevel=33 made my previews work again, but I'd prefer to not have to edit every single preview
c
Chris Sinco [G]
01/18/2024, 4:35 PM
There is not a way to do it directly in the Preview API, but you could create a multi-preview and set only one preview to API 33, and use the multi-preview annotation instead
Chris Sinco [G]
01/18/2024, 4:37 PM
For example
Copy code
@Preview(apiLevel = 33)
annotation class Api33Preview
@Api33Preview
@Composable
fun HelloWorldPreview() {
Text("Hello World")
}