https://kotlinlang.org logo
#compose
Title
# compose
t

Travis Griggs

02/27/2023, 6:19 PM
Silly style question: When naming Preview composables is there a preference for 1. FooComposablePreview 2. PreviewFooComposable 3. something else?
1️⃣ 1
a

annsofi

02/27/2023, 6:52 PM
Just personally I prefer to start with
Preview
because then I won’t get them in auto-complete
c

Chris Sinco [G]

02/27/2023, 9:18 PM
won’t get them in auto-complete
Setting them to private can also help with that
s

Stylianos Gakis

02/28/2023, 6:38 AM
Yeah I noticed recently that this is possible! I swear setting them as private was a problem back in the day, and I am not crazy right? 😅
a

annsofi

02/28/2023, 7:45 AM
Yeah, that's when I started naming them with Preview first because that's how I remember it as well, but then I just continued with the naming scheme when you I realized they could be private.