You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding the ObjCName to a type within a sealed class, the name of the generated enum case uses the Kotlin class name rather than the name given fo objective c.
// Kotlin
sealed class MyClass {
@OptIn(ExperimentalObjCName::class)
@ObjCName("clasInSwift")
object ClassCaseA : MyClass()
data class ClassCaseB(val s: String) : MyClass()
}
// Generated swift enum
@frozen
public enum __Sealed : Swift.Hashable {
case classCaseA(CMPTAutomationIdentifiers.MyClass.classInSwift) // generated case doesnt use objcname
case classCaseB(CMPTAutomationIdentifiers.MyClass.ClassCaseB)
}
The text was updated successfully, but these errors were encountered:
When adding the ObjCName to a type within a sealed class, the name of the generated enum case uses the Kotlin class name rather than the name given fo objective c.
The text was updated successfully, but these errors were encountered: