Questions tagged [rx-cocoa]

238 questions
0
votes
1 answer

Problems using RxSwift

I need to indicate some state with delay, while user is typing. I'm trying to use RxSwift: _textField.rx.text.orEmpty.debounce(3, scheduler: MainScheduler.instance).distinctUntilChanged().subscribe({[weak self] _ in …
Alexandr Kolesnik
  • 1,929
  • 1
  • 17
  • 30
0
votes
2 answers

UINAvigationController -> setViewControllers causes a crash

I've a very strange situation here - call of the method UINAvigationController -> setViewControllers:animated: causes a crash of the app. It's happining only on iOS 10.3.2 and when I'm building the app in release mode. I've collected more details.…
comrade
  • 4,590
  • 5
  • 33
  • 48
0
votes
0 answers

How to observe a change in viewModel in order to reload collectionView using RxSwift?

I have the following code to configure my collectionView: viewModel? .observableExercises .bindTo( exercisesCollectionView .rx .items(cellIdentifier: "My identifier", cellType:…
0
votes
1 answer

Swft3 (RxSwift, RxCocoa) - TableView Expand and collapse concept using reactive programming

Recently started writing code in Swift using reactive programming. Reactive programming is little confusing concept, anyway i want to implement tableview with expand and collapse concept using reactive programming. I tried in my own way, i am able…
Anjaneyulu Battula
  • 1,910
  • 16
  • 33
0
votes
1 answer

CocoaAction / Action with UIAlertController

I'm trying to use Action / CocoaAction library. The primary usage for now is to show an UIAlertController and when an UIAlertAction button is tapped it has to call a function defined in my viewModel (changeAddress that returns an Observable). My…
jerrygdm
  • 450
  • 1
  • 7
  • 22
-1
votes
2 answers

In which situation good reason to use RxSwift & RxCocoa?

A few days ago I have begun to learn RxSwift and but the more I write code and can't understand which cases need to use reactive programming, I am can write the same code without RxSwift and use NotificaitionCenter, delegate pattern, Grand Central…
Ice
  • 680
  • 1
  • 10
  • 23
-1
votes
1 answer

How to set a bool value to drive

var readIndicatorNeedsDisplay: Driver = .empty() public func bindcellEvents(readNotificationID: String) { if let unreadNotificationIDs = UserDefaults.main?.unreadNotificationIDs, unreadNotificationIDs.contains(readNotificationID) { …
-1
votes
1 answer

Unable to compile code because deprecated framework

I am looking into an old code where there have have RxCocoa framework, when I compile the code, I see the error
kirang39
  • 29
  • 1
  • 6
-1
votes
1 answer

RxFeedback Example issues

extension URLSession { fileprivate func loadRepositories(resource: URL) -> Observable { return self .rx.response(request: URLRequest(url: resource)) .retry(3) …
NVXA
  • 11
  • 2
-1
votes
2 answers

Queries about ReactiveX programming with swift

A completed project in swift 3.0, I want to update it with ReactiveX frameworks for swift i.e rxSwift, rxCocoa. My point is as i'm learning reactive it is so different and new for me. But before doing this I have some question in my mind Is it…
umairhhhs
  • 400
  • 6
  • 19
-2
votes
1 answer

Which rxSwift operator to use in this scenario?

Here is my scenario. I have one Subject that is being used together with another Subject in a combineLatest. So far so good. Now i push onCompleted on one of the Subjects but the CombineLatest is still working when the other subject pushes some…
-2
votes
1 answer

searchBar.rx.textDidBeginEditing does not working when im trying to edit text

searchBar.rx.textDidBeginEditing .subscribe { [unowned self] in print("im begining diting") self.searchBar.setShowsCancelButton(true, animated: true) } .disposed(by: disposeBag) It does not…
Serj Semenov
  • 267
  • 4
  • 11
-3
votes
1 answer

RxSwift cleaning a sequence

I have a bit problem with a nature of Rx. As I understand correctly every value that is pushed to a sequence is holding and not released. I'd like to ask if there is a way how to push this values from sequence away or release them. Edit: let…
Vanya
  • 4,973
  • 5
  • 32
  • 57
1 2 3
15
16