Skip to main content
0 votes
1 answer
250 views

I have the following code for mapping ReactiveSwift SignalProducer to Combine Publisher: import Combine import Foundation import ReactiveSwift /// This is a custom Publisher that wraps SignalProducer ...
user27576792's user avatar
0 votes
1 answer
173 views

I am using ReactiveSwift. There are two protocols: CommonProtocol and SpecificProtocol. When I use SpecificProtocol in map function there is an error Type 'any SpecificProtocol' cannot conform to '...
Riddik's user avatar
  • 3,033
0 votes
1 answer
79 views

The following code works: import UIKit import ReactiveSwift import ReactiveCocoa class ViewController: UIViewController { let myAction = Action<UIButton, (), Never> { _ in return ...
Andrew Arrow's user avatar
  • 5,121
1 vote
2 answers
144 views

It seems like a combination of collect(every:on:skipEmpty:discardWhenCompleted:) and collect(count:) in ReactiveSwift. The resulting signal would send an event every n seconds if the count of ...
ChaseChoi's user avatar
  • 175
0 votes
2 answers
173 views

I have an array of Property<Int>, and I need to reduce them to get sum of the last inputs (it's basically an unread notification counter from different SDK's) and put that into new Property<...
Andrii's user avatar
  • 28
0 votes
0 answers
91 views

I'm trying to migrate some parts of a project that was initially written in Obj-C. Currently I'm trying to migrate a code that relies heavily on signals. To give you a general idea of what I'm trying ...
Meamine's user avatar
  • 11
0 votes
1 answer
688 views

Here's my code to convert ReactiveSwift Signal Producers to Combine.Publishers import ReactiveSwift import Combine /// convert SignalProducer<X, Never> -> Publisher<X, Never> public ...
Yogurt's user avatar
  • 3,095
1 vote
1 answer
229 views

For example, I want to send a request in my viewModel, if the viewModel is dealloc. The request signal should send interrupt event. This is my code func request() -> SignalProducer<Data, Error&...
Yanni Wang's user avatar
1 vote
1 answer
1k views

I am working on a ViewController where I called my viewModel to do a DispatchQueue.async call. After the async task starts and before the end my task ViewController is deinited by pressing the back ...
Kashem's user avatar
  • 125
1 vote
1 answer
143 views

I feel confused when I see the sample code from ReactiveSwift, because intuitively observer is expected to receive events. Why does Observer is designed to have send(_:) method? // Signal.pipe is a ...
ChaseChoi's user avatar
  • 175
5 votes
2 answers
2k views

I recently started using swift's Combine (I've used ReactiveCocoa before), I'm wondering if there is a concept of cold and hot signals also in Combine? Dose Publisher is equal to cold signals(...
ImWH's user avatar
  • 954
2 votes
2 answers
330 views

I have a simple signal, in one of the app components, that returns an array of items: var itemsSignal: Signal<[Item], Never> Those items might contain updates for the data that are rendered on ...
danylokos's user avatar
  • 1,643
0 votes
1 answer
255 views

I have the following pipeline setup, and for some reason I can't understand, the second flatMap is skipped: func letsDoThis() -> SignalProducer<(), MyError> { let logError: (MyError) -&...
Zsolt's user avatar
  • 3,780
0 votes
1 answer
304 views

The following func runs well before I update to Xcode12, I'm new to ReactiveSwift and I don't know how to fix this issue, thanks for you help! Error message: Cannot convert value of type 'Disposable?'...
ImWH's user avatar
  • 954
0 votes
1 answer
182 views

I have a pipeline in ReactiveSwift for uploads. I want to make sure that even if one of the uploads fail, the rest will not be interrupted. After all of them complete with success or failure, I should ...
Zsolt's user avatar
  • 3,780

15 30 50 per page
1
2 3 4 5
9