Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

It is very strange that the Binding type is in the SwiftUI framework.
Assuming that Binding needs to be used only in View.
It turns out that in the ViewModel it is necessary to use CurrentValueSubject in the Binding place.
That is something like this:
typealias LoadableSubject<Value> = CurrentValueSubject<Loadable<Value>, Never>
But how to link Published and CurrentValueSubject?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.