hi everyone! I used to have a function like this: ...
# moko
r
hi everyone! I used to have a function like this:
Copy code
fun randomColor(): ColorResource.Single {
        return BASE_COLORS[Random.nextInt(BASE_COLORS.size)]
    }
where `BASE_COLORS`is an array of
ColorResource
but after upgrading moko library I cannot do that anymore and I'm not sure how to do it with the new implementation. Any ideas?
a
please check
ColorDesc
interface and implementations. it's replacement for old
ColorResource
. new
ColorResource
is platform-based like other resources
r
Will do! thank you