reactive-cocoa Questions
3
Solved
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]).com...
Tenacious asked 16/9, 2020 at 18:52
5
Solved
I learn the sample code in RxSwift. In the file GithubSignupViewModel1.swift, the definition of validatedUsername is:
validatedUsername = input.username //the username is a textfiled.rx_text
.fla...
Darya asked 26/5, 2016 at 8:48
3
Here is my code:
class CustomAlertAction: UIAlertAction {
init(title : String) {
super.init(title: title, style: UIAlertActionStyle.Default) { (action) -> Void in
}
}
}
But I got the foll...
Glengarry asked 14/7, 2015 at 23:52
2
Solved
In ReactiveCocoa there is macro to prevent retain cycle @weakify and @strongify. From my understanding @weakify do something like what I usually do that is create __weak reference for using in the ...
Semifluid asked 2/3, 2015 at 11:53
3
Solved
I would like to do the opposite of the following code:
RAC(self.activityIndicator, hidden) = RACObserve(self.playButton, selected);
When the play button is selected the activity indicator should...
Krishna asked 25/1, 2014 at 18:7
3
Solved
I implemented a "reactive" UIAlertController so I can get an Observable<Int> of the button press. (See code below).
My question, or questions, are:
Is this implementation correct? I don't ...
Carabao asked 28/3, 2018 at 15:30
6
Solved
I read the two way binding operator in sample code of RxSwift.
func <-> <T>(property: ControlProperty<T>, variable: Variable<T>) -> Disposable {
let bindToUIDisposable ...
Gisellegish asked 28/5, 2016 at 6:45
4
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 ...
Havener asked 5/1, 2017 at 15:40
1
Solved
What is the difference between using RxSwift's MainSchedule.instance and MainSchedule.asyncInstance within the context of observeOn?
Unthrone asked 11/10, 2019 at 0:7
2
I'm updating my project to Swift 5 Xcode 10.3.
Everything was working fine with the previous Swift version now with the latest ReactiveCocoa 10.0.0
Already tried :
Deleting and updating all car...
Impassion asked 31/7, 2019 at 10:58
4
Solved
I'm currently registering a subscriber to a property signal like this:
[RACAble(self.test) subscribeNext:^(id x) {
NSLog(@"signal fired!");
}];
The default functionality is that it fires every...
Emunctory asked 25/3, 2013 at 12:40
3
Solved
I am trying to learn ReactiveCocoa and have a hard time getting started. I keep hitting minor bumps as API and tutorials seems to be outdated quickly. Maybe I have the wrong impression.
Just tryin...
Spicebush asked 4/2, 2016 at 15:53
5
Is there a way to launch the Google SignIn programmatically without pressing on the GIDSignInButton ?
I'm trying to wrap a signal around hitting google api where the user must log in.
sort of :
...
Unseal asked 14/7, 2015 at 17:57
3
Solved
I want to convert the below code into RxSwift. And also please help me how to write button Action code in RxSwift.
ReactiveCocoa or RxSwift Which one is better to use in swift3?
func tableView(_ ...
Chesterton asked 19/4, 2017 at 4:46
2
Solved
I've created an event subscriber in viewDidLoad, as follows:
[RACObserve(_authenticationView.passwordInput.textField, text) subscribeNext:^(NSString* text)
{
//handle this
}];
This fires whene...
Prairial asked 7/3, 2014 at 8:57
1
Solved
What is the most elegant way to transform my ReactiveSwift's SignalProducer<A, NetworkError> into a Signal<A, NoError>?
Most of the time, my signal producer is the result of a network ...
Im asked 17/4, 2018 at 17:50
1
Solved
I am writing Swift with the new ReactiveCocoa + ReactiveSwift. I am trying to do something like the following (in ReactiveCocoa 2.5) with the new ReactiveCocoa framework:
[[RACObserve(user, userna...
Unseam asked 1/12, 2017 at 0:4
1
Solved
I'd like to show B UIView iff A UIView is visible. I used ReactiveCocoa 2 in objective-c and tried to find a similar way to observe isHidden property of UIView in ReactiveSwift. I'm still trying to...
Aikens asked 11/4, 2017 at 2:45
1
Solved
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?
Thyroiditis asked 14/3, 2017 at 15:49
2
Solved
I'm a newbie in RxSwift and need a very basic help.
Assump that I have an Observable and subscribe it like this.
let source: Observable<Void> = Observable.create { [weak self] observer in
...
Exchangeable asked 16/3, 2016 at 17:44
3
Solved
I'm implementing a chat UI, and using Reactive Cocoa to adjust the chat bubble's size as the user types. Currently, I'm updating the UI's layout based on the textview's rac_textSignal. Everything's...
Rodi asked 25/11, 2013 at 7:43
1
Solved
I've read the documentation, gone through their wonderful Playground example, searched S.O., and reached the extent of my google-fu, but I cannot for the life of me wrap my head around how to use R...
Hardness asked 28/11, 2016 at 3:27
3
Solved
I am using ReactiveCocoa in an app which makes calls to remote web APIs. But before any thing can be retrieved from a given API host, the app must provide the user's credentials and retrieve an API...
Ulyanovsk asked 28/12, 2012 at 8:20
2
I am using ClangFormat.
I wish to update the style of my ReactiveCocoa code from this
[[self.myService indexCase] subscribeNext:^(id response) {
DDLogDebug(@"response : %@", response);
}
erro...
Lucie asked 7/7, 2016 at 12:27
1
I'm trying to write a MVVM with RxSwift and comparing to what I was used to do in ReactiveCocoa for Objective-C it's been a little hard to write my service in the right way.
An exemple is a Login...
Brunelle asked 2/3, 2016 at 16:26
1 Next >
© 2022 - 2024 — McMap. All rights reserved.