( i am a beginner ) how to consume / get state of a store that exposed with decompose component in swift and also in jetpack compose .if i map store model to decompose model then i can expose ObservableWrapper or Observable of type decompose model . if i dont map i get BehaviorObservable or BehaviorObservableWrapper of Store.model . now how can i observe them in swift . in todo example they use asValue but in my case com.arkivanov.mvikotlin.rx.observer is not there . i want to know how to fix this and also if i can observe Observable or BehaviorObservable . thanks in advance .
is there any example swift helper for BehaviorObservableWrapper .
a
Arkadii Ivanov
06/15/2023, 8:58 AM
I have not seen any, but it would be literally equivalent to Value.
Arkadii Ivanov
06/15/2023, 9:00 AM
If you are using Decompose, then most likely you will have Swit utils for Value anyway. In this case it looks useful to convert Store to Value, to reuse that Swift code. But it's up to you. Utils are small anyway.
a
abu naser
06/15/2023, 9:10 AM
yes value is working . i was just curious about how to do it with BehaviorObservableWrapper .. anyway thanks for your help.