Join Slack
Powered by
Hi, Is there any way I can create a instance of a ...
# multiplatform
k
Kinylund
08/30/2023, 11:35 AM
Hi, Is there any way I can create a instance of a ktclass by using kotlin reflect internally in a ios framework?
Kinylund
08/30/2023, 11:36 AM
It works for the android part of course but does not compile for iosMain
g
Giancarlo Buenaflor
08/30/2023, 2:20 PM
afaik this is not currently possible in kotlin/native
k
Kinylund
08/31/2023, 6:46 AM
So how do one create instances of a class based on a class type the correct way in that case? Sorry if it is obvius😂
Kinylund
09/01/2023, 9:17 AM
I ended up making a when clause for the classes insted. Problem solved
6
Views
Open in Slack
Previous
Next