icerockdev / moko-mvvm

Model-View-ViewModel architecture components for mobile (android & ios) Kotlin Multiplatform development

Home Page:https://moko.icerock.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swift: Can't access bindTextTwoWay Extension Functions for Live Data

TheArchitect123 opened this issue · comments

I'm trying to bind UITextField into bindTextTwoWay and bind for LIveData objects in my viewmodel classes on the shared library.

Even though I have exported the LIve data dependencies, I can't seem to access the bindTextTwoWay extensions on Swift.
I've integrated k-swift and no extensions are available.


 targets.withType(org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget::class.java).all {
        binaries.withType(org.jetbrains.kotlin.gradle.plugin.mpp.Framework::class.java).all {
            export("dev.icerock.moko:mvvm-core:0.16.1")
            export("dev.icerock.moko:mvvm-livedata:0.16.1")
            export("dev.icerock.moko:mvvm-livedata-resources:0.16.1")
            export("dev.icerock.moko:mvvm-state:0.16.1")
            export("dev.icerock.moko:mvvm-flow:0.16.1") // api mvvm-core, CFlow for native and binding extensions
            export("dev.icerock.moko:mvvm-flow-resources:0.16.1")
        }
    }

@Alex009 @darronschall @YokiToki
Any help would be appreciated. Thanks