Is there any alternative to annotations like @Draw...
# compose
a
Is there any alternative to annotations like @DrawableRes or @StringRes (in Android) for Compose Multiplatform, because I can't find these annotations in Compose Multiplatform.
🚫 2
c
These are required on Android because all Android resources are of type
Int
. The Compose Multiplatform resources do not have this problem since they are strongly typed (
DrawableResource
,
StringResource
etc). So these types accomplish the same objective that the annotations would on Android.
👍 1