Closed cl3m closed 2 years ago
Internal sealed class can be hidden with the @KSwiftExclude annotation but it does not work for the sub class.
sealed class Test {
data class Exported(val value: Int) : Test()
@KSwiftExclude // does not work, nor internal keyword
internal data class Hidden(val value: Int) : Test()
}
Such class will make swift fail compilation as well.
will be available in 0.4.0
Apparently this also doesn't work for sealed classes under another internal class. Example:
internal interface MyInterface {
sealed class Test {} // still gets exported
}
Not sure if there is any way to fix that.
Internal sealed class are exported by kswift but won't be available in the library. Swift compilation failed because it can not find types.