https://kotlinlang.org logo
Title
s

Skeptick

06/29/2020, 6:35 AM
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

Arkadii Ivanov

06/29/2020, 10:07 AM
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

Skeptick

06/29/2020, 11:00 AM
Oh, thank you! Looks like this is exactly what I need 😊