In version 5.0, ReactiveCocoa is splitted into multiple repositories which includes ReactiveCocoa, ReactiveSwift and ReactiveObjC.
Questions tagged [reactive-cocoa-5]
22 questions
10
votes
4 answers
How do you get a signal every time a UITextField text property changes in ReactiveCocoa 5
How do you get a signal from both user-initiated and programmatically made changes to UITextField text property? By using continuousTextValues only reports a signal when the user has initiated the change. If you set textField.text programmatically,…

Markus Rautopuro
- 7,997
- 6
- 47
- 60
8
votes
1 answer
How do I convert a RACSignal to a SignalProducer in ReactiveCocoa 5?
In ReactiveCocoa 4, we could convert a RACSignal into a SignalProducer using toSignalProducer(). This method does not exist in ReactiveCocoa 5, so how can we do the same thing?

Luke
- 7,110
- 6
- 45
- 74
4
votes
2 answers
ReactiveSwift: How to subscribe to SignalProducer?
I'm trying to learn ReactiveSwift and ReactiveCocoa. I can use Signal and Property pretty well, but I'm having trouble with SignalProducer.
As I understand it, SignalProducer is ideal for things like network requests. I set up my API layer to create…

ABeard89
- 911
- 9
- 17
4
votes
3 answers
Can a signal observer get access to the last emitted value of a ReactiveCocoa signal?
I'm starting using ReactiveCocoa and I'm still struggling with some basic concepts:
My app starts listening for geolocation data (init in my view model)
My app emits a signal with my current location (didFindCurrentPosition is called)
My view…

Mick F
- 7,312
- 6
- 51
- 98
3
votes
1 answer
Simple code swift to reactiveswift
People how I can convert my code:
struct CarModel {
var model: String?
var make: String?
var kilowatts: Int?
var photoURL: String?
init(model: String, make: String, kilowatts: Int, photoURL: String) {
self.model = model
…

Vladyslav
- 33
- 8
2
votes
1 answer
ReactiveCocoa 5 Animations
I'm trying to animate a view's alpha property after I've sent it some values via a ReactiveSwift Signal Producer.
The following is how I am currently doing it sans animations.
// Somewhere in View Model (for all code below)
let shouldShowShutter =…

Nate Lee
- 2,842
- 1
- 24
- 30
2
votes
2 answers
ReactiveCocoa: Difference between binding to a Signal or a SignalProducer?
The binding operator (<~) takes a BindingSource argument, both Signal and SignalProducer conform to the protocol
I would expect an UI element that is bound to a producer wouldn't "receive events" until the producer is started in some way but this…

synndicate
- 58
- 8
2
votes
1 answer
Observe UISwich control state
Observing the switch and trigger action seems like below in reactive cocoa 4.But can't figure out in reactive cocoa 5.
mediaTypeSwich.rac_signalForControlEvents(.ValueChanged)
.flattenMap { (sender:AnyObject!) ->…
user6398734
1
vote
1 answer
How to turn a Property into a SignalProducer?
Given
let numberOfSneezes = Property(0)
how do i turn numberOfSneezes.producer into this type of producer
let sneezeNumberProducer: SignalProducer
?
I know numberOfSneezes.producer is not going to send any errors, but i…

tableadventure
- 23
- 5
1
vote
1 answer
How can I convert a RACDisposable to a Disposable in ReactiveCocoa 5?
In ReactiveCocoa 5, how can I convert a RACDisposable to a Disposable? If I try to add a RACDisposable to a CompositeDisposable, I get "Binary operator '+=' cannot be applied to operands of type 'CompositeDisposable' and 'RACDisposable'".

Luke
- 7,110
- 6
- 45
- 74
1
vote
1 answer
ReactiveCocoa - concat flatten strategy not working as expected
I've started to learn reactive-cocoa from couple of days, today I was playing with the flatten method of the reactivecocoa (reactiveSwift), I tried executing the snippet given for the concat flattening in the documentation Basic operators. Here's…

iamyogish
- 2,372
- 2
- 23
- 40
1
vote
1 answer
Use of unresolved operator '<~'
I am using ReactiveCocoa 5.0 alpha 3, ReactiveSwift and Swift 3
I am having issues with binding my UITextField to a MutableProperty.
In ReactiveCocoa 4, I used this:-
extension UITextField {
func signalProducer() -> SignalProducer

Abhinav Nair
- 958
- 1
- 8
- 29
1
vote
2 answers
Form validation in reactive cocoa
I am trying to validate a form which has multiple textfields. But I can observe only when both textfields are edited...
let validUserNameSignal =
self.nameTextField
.reactive
.continuousTextValues
.skipNil()
…
user6398734
0
votes
0 answers
ReactiveCocoa MutableProperty binding creates retain cycle, leaks memory
I have simple one UIViewViewController app with a UILabel outlet. I have one MutableProperty that I bind to label.reactive.text this causes 57 memory leaks. Does binding two mutable properties always leak memory, if so why?
class…

stringCode
- 2,274
- 1
- 23
- 32
0
votes
1 answer
Cyclic Bindings with ReactiveCocoa, How to bind one value to two input UI elements
In an iOS Project, i have to implement a view controller that allows to pick a float value using a slider and a text field at the same time. it should have the following behaviour:
whenever a number is typed in the text field, the slider should…

Falco Winkler
- 1,082
- 1
- 18
- 24