icerockdev / moko-mvvm

Model-View-ViewModel architecture components for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev/
Apache License 2.0
995 stars 95 forks source link

New iOS binding extensions provide errors in usage (erased types) #127

Closed Alex009 closed 2 years ago

Alex009 commented 3 years ago

last case of error: viewModel.addedFilesCount.bindStringDescToLabelText(label: addFilesCountLabel) but needed in this case: viewModel.addedFilesCount.bindStringToLabelText(label: addFilesCountLabel)

cause - types of LiveData in extension just erased and we can use LiveData<Int> in bindStringToLabelText for example

Alex009 commented 2 years ago

fixed with 0.12.0 release