Skip to main content
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
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
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
0 votes
1 answer
114 views

below i am defining a solution and using interval as a timer in background thread as follow : @weakify(self) //IMPORTANT:- Throttle is working exactly the same way debounce works in RX SO DO NOT USE ...
Osama Fawzi's user avatar
0 votes
2 answers
3k views

Package.json { "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "expo start", "android": "expo start --...
Harshit Chauhan's user avatar
20 votes
3 answers
16k views

How can I rewrite ReactiveSwift/ReactiveCocoa code using Combine framework? I attached screenshot what combinePrevious mean from docs. let producer = SignalProducer<Int, Never>([1, 2, 3])....
Taras's user avatar
  • 2,009
0 votes
1 answer
301 views

As the other practice in weak and strong, it recommends that we should check whether the weakself is null before we strongify it. It looks like this: __weak weakself = self someblock { if (weakself)...
richar lee's user avatar
0 votes
1 answer
642 views

I inherited a somewhat old project written in ReactiveSwift (v3.1.0) and ReactiveCocoa (v7.2.0). When I opened it on Xcode 10.1, it was built without an issue. But when I did the same on Xcode 10.3, I ...
Isuru's user avatar
  • 31.4k
0 votes
1 answer
171 views

I recently inherited a iOS project written using ReactiveSwift 3.1.0 and ReactiveCocoa 7.2.0. I'm tasked with updating it to Swift 5 and the latest ReactiveSwift versions. I updated ReactiveSwift to ...
Isuru's user avatar
  • 31.4k
0 votes
1 answer
330 views

I have a function capturing events from an api which works great. The only issue is i dont want the stream to be complete when it fails. public func getDeviceEvent(deviceUID: String) -> ...
Wazza's user avatar
  • 1,943
1 vote
0 answers
377 views

I'm working on updating an app from Swift 3 to Swift 5. This requires updating ReactiveCocoa. There is some code that was using a timer within a SignalProducer that no longer works when updating. Here ...
hirsch's user avatar
  • 103
0 votes
1 answer
1k views

I have an app using RxSwift following MVVM. ViewController import UIKit import RxSwift import RxCocoa final class ProfileViewController: BaseViewController<ProfileView> { var viewModel: ...
Tim J's user avatar
  • 1,251
1 vote
1 answer
116 views

Preface: this is a design question about reactive programming. It's intended to be language agnostic, so it's all psuedo-codey. I suspect whatever the right answer is, would be equally applicable ...
Alexander's user avatar
  • 63.9k
0 votes
1 answer
107 views

I have a statusArray and to show the UILabel texts based on the Bool value say , 1 show someString then 0 show some other string how should I do that use rac as ReactiveCocoa ?
iDelusion's user avatar
  • 815

15 30 50 per page
1
2 3 4 5
58