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

sendoav

11/26/2023, 7:10 AM
Hi, I'm working in a KMM solution with SwiftUI. In order to draw the UI I instantiate KMM Presenters in my SwiftUI Views and request the presenter to return the kotlin model (a data class with all the properties to be painted) to draw. Then I simply pass that kotlin model down to the SwiftUI subviews. Should it be more efficient to clone that kotlin model into structs and use those structs in subviews or it would not make any difference?