https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

abdelrahmanesam20000

10/14/2023, 5:32 PM
HI , I am using MVI arch in my view model in KMP ..... but the problem is with sealed class and calling it in my swift code ..... any help please ?
h

Håkon Pettersen

10/14/2023, 6:00 PM
Take a look at SKIE :)
👍 1
a

abdelrahmanesam20000

10/14/2023, 6:14 PM
can I do anything with the first citizen APIs ?
h

Håkon Pettersen

10/14/2023, 7:05 PM
Enable SealedInterop and you should be good to go.
Copy code
skie {
    features {
        group {
            SealedInterop.Enabled(true)
            ...
        }
    }
}
https://skie.touchlab.co/features/sealed
a

abdelrahmanesam20000

10/14/2023, 7:06 PM
I mean without SKIE .... is there anything from jetbrains to solve the problem ?
h

Håkon Pettersen

10/14/2023, 7:07 PM
Oh, I don't belive so
You would have to cast to the specific types I belive.
🥲 1
a

abdelrahmanesam20000

10/14/2023, 7:09 PM
OK thank you so much for your help
🫡 1
m

Marc

10/14/2023, 7:43 PM
https://kotlinlang.slack.com/archives/C3PQML5NU/p1696755638289749 Could this issue maybe be related to my problem as well? 😅
h

Håkon Pettersen

10/14/2023, 7:44 PM
We have had no issues calling methods from IOS with Kotlin Objects.
m

Marc

10/14/2023, 7:45 PM
okey.. strange
3 Views