You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For iOS we recommend use [moko-kswift](https://github.com/icerockdev/moko-kswift) with extensions
76
76
generation enabled. All `LiveData` to `UIView` bindings is extensions for UI elements.
77
77
78
+
### SwiftUI additions
79
+
80
+
To use MOKO MVVM with SwiftUI set name of your kotlin framework to `MultiPlatformLibrary` and add
81
+
dependency to CocoaPods:
82
+
```ruby
83
+
pod 'mokoMvvmFlowSwiftUI', :podspec => 'https://raw.githubusercontent.com/icerockdev/moko-mvvm/release/0.13.0/mokoMvvmFlowSwiftUI.podspec'
84
+
```
85
+
78
86
## Documentation
79
87
Documentation generated by Dokka and available at https://icerockdev.github.io/moko-mvvm/
80
88
@@ -498,7 +506,8 @@ Please see more examples in the [sample directory](sample).
498
506
- The [mvvm-databinding directory](mvvm-databinding) contains DataBinding support code for Android;
499
507
- The [mvvm-viewbinding directory](mvvm-viewbinding) contains ViewBinding support code for Android;
500
508
- The [mvvm-test directory](mvvm-test) contains the test utilities;
501
-
- In [sample directory](sample) contains sample apps for Android and iOS; plus the mpp-library connected to the apps.
509
+
- In [sample directory](sample) contains sample apps for Android and iOS; plus the mpp-library connected to the apps;
510
+
- In [sample-declarative-ui directory](sample-declarative-ui) contains sample apps with Jetpack Compose and SwiftUI.
502
511
503
512
## Contributing
504
513
All development (both new features and bug fixes) is performed in the `develop` branch. This way `master` always contains the sources of the most recently released version. Please send PRs with bug fixes to the `develop` branch. Documentation fixes in the markdown files are an exception to this rule. They are updated directly in `master`.
0 commit comments