Hi, I have done some experimenting with Kotlin na...
# kotlin-native
t
Hi, I have done some experimenting with Kotlin native for iOS. I have discovered at several occasions that I run into "Overload resolution ambiguity" when calling certain functions. For instance UIColor, which has 3 overloads with the same signature. How do I get the compiler to distinguish between those ?
a
Hi! you have to specify argument names explicitly in such cases. See (https://github.com/JetBrains/kotlin-native/blob/master/OBJC_INTEROP.md#method-names-translation)
t
Thank you. Just found out 30 seconds after posting this.
👍 1