Another issue that concerns me is getting State. I...
# mvikotlin
s
Another issue that concerns me is getting State. I used the same approach with Proxy as in the example. But
@Published
replaced with
PublishSubject
from RxSwift. I don’t like the need to use an additional library for such a simple task. In addition, in mpp-library I use coroutines. Perhaps there is an easier way to signal the
UIViewController
of a state change?
a
With UIKit you don't need to use the proxy thing at all,
Combine
is required for SwiftUI. But for UIKit you do similar to how it works in Android sample currently. You can find a UIKit sample here: https://github.com/badoo/Reaktive/blob/master/sample-ios-app/sample-ios-app/ViewController.swift So basically just implement the
View
interface normally.
👍 1
s
Oh, thank you! Looks like this is exactly what I need 😊