In order to get the live preview, do you have to h...
# compose
s
In order to get the live preview, do you have to have something with the @Preview annotation?
w
Yes, the
@Preview
annotation should be attached to a
@Composable
function with no parameters
s
Ok. I was trying to go through the tutorial, and wasn't getting a preview
w
If you create new project from composable activity template it should work
s
it did, but then I cleared the code to work alongside the tutorial
👍 1
and then about 3 steps down, it says to add the @Preview bit