Fix function overloading

This commit is contained in:
Syer10
2022-11-18 20:22:20 -05:00
parent b4f5ba015d
commit 76badc05d1

View File

@@ -14,7 +14,7 @@ import kotlinx.cinterop.value
import platform.CoreGraphics.CGFloatVar
import platform.UIKit.UIColor
fun Color.toUIColor() = UIColor(red.toDouble(), green.toDouble(), blue.toDouble(), 1.0)
fun Color.toUIColor() = UIColor(red = red.toDouble(), green = green.toDouble(), blue = blue.toDouble(), alpha = 1.0)
internal actual fun Color.toHsv(): FloatArray = memScoped {
val uiColor = toUIColor()