How to fix this error in iOS Compose Multiplatform...
# compose-ios
j
How to fix this error in iOS Compose Multiplatform?
Painter.ios.kt:42:27: error: Overload resolution ambiguity:
public external fun NSObject.setValue(value: Any?, forKey: String): Unit defined in platform.Foundation
public external fun NSObject.setValue(value: Any?, forKeyPath: String): Unit defined in platform.Foundation
public external fun NSObject.setValue(value: Any?, forUndefinedKey: String): Unit defined in platform.Foundation
In ios code
val qrCodeFilter = CIFilter.filterWithName("CIQRCodeGenerator")
qrCodeFilter?.setValue(content, "inputMessage")
qrCodeFilter?.setValue("H", "inputCorrectionLevel")
l
Use a named parameter
qrCodeFilter?.setValue(content, forKey = "inputMessage")