icerockdev / moko-mvvm

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

Move swift extensions with UI binding to Kotlin ios-specific code #11

Closed Alex009 closed 4 years ago

Alex009 commented 4 years ago

Until moko-resources 0.5.0 to work with StringDesc on iOS we should use CocoaPod addition. This is reason why moko-mvvm also use CocoaPod addition for iOS. But now we can move UI bindings of ios to kotlin ios-specific part and remove additional CocoaPod. https://github.com/icerockdev/moko-mvvm/tree/master/mvvm/src/iosMain/swift here sources which should be moved

Alex009 commented 4 years ago

ios views binding logic moved to kotlin, but swift extensions can't be removed - kotlin native framework can't generate extensions to UIKit classes. extensions generated only for kotlin classes

Alex009 commented 4 years ago

merged