I'm designing a color picker library that's very m...
# compose
z
I'm designing a color picker library that's very modular. One thing I wanna add is a color picker style that follows color well on iOS I'm looking for advice on the composable function signature for it How should developers pass the list of colors to it? if I have
colors: List<Color
, that wouldn't be stable cause of
List
?
s
You can use ImmutableList, or add kotlin.List to stability configuration file.
1
Recently released 'Strong skipping' feature might help as well.
@Immutable data class ColorList(val colors: List<Color>) is an option too.
2