Top "Combine" questions

Combine is Apple's declarative Swift API for processing values over time.

Swift Combine: How to create a single publisher from a list of publishers?

Using Apple's new Combine framework I want to make multiple requests from each element in a list. Then I want …

swift combine
How can I get data from ObservedObject with onReceive in SwiftUI?

In my SwiftUI app, I need to get data from ObservedObject each time the value change. I understood that we …

swift swiftui combine
Binding value from an ObservableObject

Aim: I have a model which is an ObservableObject. It has a Bool property, I would like to use this …

swift swiftui combine
Error: Initializer 'init(_:)' requires that 'Binding<String>' conform to 'StringProtocol'

I am getting the above error and couldn't figure out how to solve it. I have an array of objects …

swift swiftui combine
SwiftUI and MVVM - Communication between model and view model

I've been experimenting with the MVVM model that's used in SwiftUI and there are some things I don't quite get …

swift swiftui combine
Create a Timer Publisher using Swift Combine

I've been watching the Data Flow Through SwiftUI WWDC talk. They have a slide with a sample code where they …

swift swiftui publisher combine
iOS Swift Combine: cancel a Set<AnyCancellable>

If I have stored a cancellable set into a ViewController: private var bag = Set<AnyCancellable>() Which contains multiple …

ios swift swiftui ios13 combine
What is PassthroughSubject & CurrentValueSubject

I happen to look into Apple's new Combine framework, where I see two things PassthroughSubject<String, Failure> CurrentValueSubject&…

ios swiftui reactive-programming combine declarative-programming
SwiftUI: Generic parameter 'Subject' could not be inferred

I built a LoadingView with SwiftUI for showing some loading stuff in my app while I'm fetching remote data from …

swift swiftui swift5 combine
How to update @FetchRequest, when a related Entity changes in SwiftUI?

In a SwiftUI View i have a List based on @FetchRequest showing data of a Primary entity and the via …

core-data swiftui combine