https://kotlinlang.org logo
#compose-ios
Title
# compose-ios
h

Hristijan

03/07/2024, 8:37 AM
hey guys, i have this function
Copy code
actual fun formatString(format: String, vararg args: Any?) : String = NSString(NSCoder()).stringByAppendingFormat(
    format = format,
    args
)
but it fails on compilation
error: type kotlin.Array<out kotlin.Any?>  is not supported here: doesn't correspond to any C type
Kotlin 1.9.22, kmp compose 1.6.0
but if i do
Copy code
actual fun formatString(format: String, vararg args: Any?) : String = NSString(NSCoder()).stringByAppendingFormat(
    format = format,
    args.toList()
)
it works It worked previously, did anything change in the meantime 🤔
2 Views