An android lint to make `@Preview` functions priva...
# compose
l
An android lint to make
@Preview
functions private to avoid polluting code completion might be useful?!
s
This recent discussion lies in the same concept of problems with Previews and developer experience imo. This doesn’t seem to be actively looked into unfortunately. It’s good that more people like you bring it up here and there. I hope some actions are taken to address these problems at some point 🤗
l
Thanks for mentioning this discussion
b
We built one for our team because we are okay enforcing that all previews should be private. That being said I don’t think it is a globally applicable requirement - some teams might not want that enforcement
l
Of course its not necessary. Would be just neat. I also make all composables private that are not reusable. It's just good to know if devs are aware about that