79073134

Date: 2024-10-10 07:12:02
Score: 2.5
Natty:
Report link

Thanks for sharing this, I have modified above code to convert Kotlin / Compose Multiplatform Color to UIColor

fun toUIColor(c: Color): UIColor {
    return UIColor(red = c.red.toDouble(), green = c.green.toDouble(), blue = c.blue.toDouble(), alpha = c.alpha.toDouble())
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (2): Thanks for sharing
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: Sumit