Skip to main content

Enums

Enabled (Boolean)

Controls whether the Swift enum is generated for the given Kotlin enum.

The default value is true.

Annotation configuration:

Kotlin
import co.touchlab.skie.configuration.annotations.EnumInterop

@EnumInterop.Enabled
enum class Enabled

@EnumInterop.Disabled
enum class Disabled

Gradle configuration:

build.gradle.kts
import co.touchlab.skie.configuration.EnumInterop

skie {
features {
group {
EnumInterop.Enabled(true) // or false
}
}
}

LegacyCaseName (Boolean)

If true, SKIE uses the original Kotlin compiler algorithm for naming enum cases.

The default value is false.

Annotation configuration:

Kotlin
import co.touchlab.skie.configuration.annotations.EnumInterop

@EnumInterop.LegacyCaseName.Enabled
enum class Enabled

@EnumInterop.LegacyCaseName.Disabled
enum class Disabled

Gradle configuration:

build.gradle.kts
import co.touchlab.skie.configuration.EnumInterop

skie {
features {
group {
EnumInterop.LegacyCaseName(true) // or false
}
}
}