Syex
04/08/2021, 10:15 AMsealed class Test: MyInterface
which is obviously fine.
In Swift this interface becomes a protocol
. I'm trying to mimic the sealed class now with a Swift enum
enum Test : MyInterface
which fails with Non-class type 'Test' cannot conform to class protocol 'MyInterface'
.
Is there a way to not transform it to a class-only protocol in Swift? It seems Swift automatically assumes it's class only when looking at the generated header file.