Hello, I have the next ViewModel implementation th...
# touchlab-tools
m
Hello, I have the next ViewModel implementation that I believe is not getting translated properly through Skie (version 0.9.2): Abstract implementation
Copy code
abstract class StateFlowViewModel<State, Action>() : ViewModel() {
    abstract val initialState: State
    protected val mutableState: MutableStateFlow<State> by lazy { MutableStateFlow(initialState) }

    open val state: StateFlow<State>
        get() = mutableState

... // Some other stuff

}
Specific implementation
Copy code
@KoinViewModel
class FeatureViewModel(
    @Provided private val permissionsController: PermissionsController,
    private val stateHandler: FeatureStateHandler,
) : StateFlowViewModel<FeatureState, FeatureAction>() {
    override val initialState = stateHandler.handleInitialState()

... // Some other stuff
}
However, when it gets translated to use it from the Swift side, I don't have access to the
state
anywhere, I have even tried adding a silly
fun helloIos()
function and that one is not available either.
Am I missing anything?
Never mind, it's working now, turns out I just had to restart XCode🤦🤦🤦 Jeez, I miss AppCode!!!!