Closed Alex009 closed 3 years ago
i think in this issue we should try remove requirement of naming MultiPlatformLibrary
for kotlin framework.
to do it i suggest:
revert action of binding extensions. now we add extension function to UIKit
classes and Kotlin/Native can't add it as extension...but when we add extension of kotlin class - it exported correct.
so i suggest to change:
fun UIButton.bindEnabled(
liveData: LiveData<Boolean>,
enabledColor: UIColor? = null,
disabledColor: UIColor? = null
) {
...
}
to
fun LiveData<Boolean>.bindEnabled(
button: UIButton,
enabledColor: UIColor? = null,
disabledColor: UIColor? = null
) {
...
}
In version 0.9.0 new iOS bindings still have same problem. For example this bindings not support optional values
implemented in #100 and released in 0.9.1
with new ios view bindings required write
because optionals not supported