# RxSwift

**URL:** https://forums.kodeco.com/c/books/rxswift/30.md?page=3

[Latest](https://forums.kodeco.com/latest.md) · [Categories](https://forums.kodeco.com/categories.md) · [Tags](https://forums.kodeco.com/tags.md)

**Page:** 4

---

## [Chapter 24: SceneCoordinator and Passing data back from a presented VC](https://forums.kodeco.com/t/chapter-24-scenecoordinator-and-passing-data-back-from-a-presented-vc/67020)

<div class="topic-metadata">

**Author:** [@raoul](https://forums.kodeco.com/u/raoul)\
**Replies:** 2\
**Last updated:** [May 2, 2019, 11:47am UTC](https://forums.kodeco.com/t/chapter-24-scenecoordinator-and-passing-data-back-from-a-presented-vc/67020 "2019-05-02T11:47:34Z")

</div>

Hi All, Currently reading the RxSwift book and stumbling on an issue which has to do with passing data back from a presented view controller. Here’s what I would like to do. I have a list of items; when I click on an i…

---

## [To Action or not to Action?](https://forums.kodeco.com/t/to-action-or-not-to-action/66165)

<div class="topic-metadata">

**Author:** [@jgongo](https://forums.kodeco.com/u/jgongo)\
**Replies:** 2\
**Last updated:** [May 1, 2019, 8:52pm UTC](https://forums.kodeco.com/t/to-action-or-not-to-action/66165 "2019-05-01T20:52:15Z")

</div>

Hi there, Chapter 20 of the RxSwift book advocates the use of Action, as something really useful and “Perfectly suited for MVVM” (the title of a section, not my words). But after toying a bit with them I’m about to drop…

---

## [Chapter 12 - NSURLComponents](https://forums.kodeco.com/t/chapter-12-nsurlcomponents/67537)

<div class="topic-metadata">

**Author:** [@mook94](https://forums.kodeco.com/u/mook94)\
**Replies:** 1\
**Last updated:** [April 30, 2019, 5:09am UTC](https://forums.kodeco.com/t/chapter-12-nsurlcomponents/67537 "2019-04-30T05:09:28Z")

</div>

Hi, in your book you use let urlComponents = NSURLComponents(url: url, resolvingAgainstBaseURL: true)! in the method private func buildRequest(method: String = "GET", pathComponent: String, params: \[(String, String)\])…

---

## [Basing Actions on an Observable](https://forums.kodeco.com/t/basing-actions-on-an-observable/67618)

<div class="topic-metadata">

**Author:** [@rustprooffish](https://forums.kodeco.com/u/rustprooffish)\
**Replies:** 2\
**Last updated:** [April 15, 2019, 11:28am UTC](https://forums.kodeco.com/t/basing-actions-on-an-observable/67618 "2019-04-15T11:28:24Z")

</div>

I’m using many of the patterns described in the RxSwift book to develop an app and have run into a problem where one of the dependencies for an Action (that would subsequently have it’s input bound to a text field) is ba…

---

## [Chapter 9 (errata)](https://forums.kodeco.com/t/chapter-9-errata/66214)

<div class="topic-metadata">

**Author:** [@mook94](https://forums.kodeco.com/u/mook94)\
**Replies:** 1\
**Last updated:** [April 3, 2019, 1:26pm UTC](https://forums.kodeco.com/t/chapter-9-errata/66214 "2019-04-03T13:26:22Z")

</div>

Hello, right after the start of chapter 9 you display a code snippet: example(of: “concat”) { let germanCities = Observable.of(“Berlin”, “Münich”, “Frankfurt”) let spanishCities = Observable.of(“Madrid”, “Barcelona”, …

---

## [OS X command line project can't find RxAtomic framework](https://forums.kodeco.com/t/os-x-command-line-project-cant-find-rxatomic-framework/62419)

<div class="topic-metadata">

**Author:** [@evs718](https://forums.kodeco.com/u/evs718)\
**Replies:** 9\
**Last updated:** [April 1, 2019, 9:50pm UTC](https://forums.kodeco.com/t/os-x-command-line-project-cant-find-rxatomic-framework/62419 "2019-04-01T21:50:48Z")

</div>

I’m attempting to compile an OSX command line project with RxSwift. The project has nothing in it, except what is auto-generated by xcode. The RxAtomic framework can not be found at run time. dyld: Library not loaded: @…

---

## [Chapter 23, unable to build iOS starter project](https://forums.kodeco.com/t/chapter-23-unable-to-build-ios-starter-project/65039)

<div class="topic-metadata">

**Author:** [@skeletom](https://forums.kodeco.com/u/skeletom)\
**Replies:** 1\
**Last updated:** [March 27, 2019, 7:39am UTC](https://forums.kodeco.com/t/chapter-23-unable-to-build-ios-starter-project/65039 "2019-03-27T07:39:07Z")

</div>

Anyone able to help with this error? Thank you Tomas

---

## [ViewModels providing input for other viewModels - best practice?](https://forums.kodeco.com/t/viewmodels-providing-input-for-other-viewmodels-best-practice/64825)

<div class="topic-metadata">

**Author:** [@rustprooffish](https://forums.kodeco.com/u/rustprooffish)\
**Replies:** 5\
**Last updated:** [March 25, 2019, 10:13pm UTC](https://forums.kodeco.com/t/viewmodels-providing-input-for-other-viewmodels-best-practice/64825 "2019-03-25T22:13:08Z")

</div>

I’m using the example in the final chapter as the basis for an app that has a split view controller as the root. The master view contains a table and I want the item selected by the user to drive activity in the detail v…

---

## [Time to update the book?](https://forums.kodeco.com/t/time-to-update-the-book/57444)

<div class="topic-metadata">

**Author:** [@evs718](https://forums.kodeco.com/u/evs718)\
**Replies:** 10\
**Last updated:** [March 20, 2019, 11:01am UTC](https://forums.kodeco.com/t/time-to-update-the-book/57444 "2019-03-20T11:01:36Z")

</div>

Chapter 2 example(of:“Variable”) { let variable = Variable(“New Initial Value”) } \[DEPRECATED\] Variable is planned for future deprecation. Please consider BehaviorRelay as a replacement. Read more at: Moving \*Relay i…

---

## [Errata: Wrong marble diagram for flatMap (page 147)?](https://forums.kodeco.com/t/errata-wrong-marble-diagram-for-flatmap-page-147/64622)

<div class="topic-metadata">

**Author:** [@jgongo](https://forums.kodeco.com/u/jgongo)\
**Replies:** 2\
**Last updated:** [March 18, 2019, 12:33am UTC](https://forums.kodeco.com/t/errata-wrong-marble-diagram-for-flatmap-page-147/64622 "2019-03-18T00:33:58Z")

</div>

Hi there, I was re-reading the RxSwift book (2nd edition) to refresh some of the concepts and I didn’t understand the marble diagram for flatMap in page 147. After thinking a bit about it, I think it may be wrong: In t…

---

## [Restrict double/single space for TextField in RxSwift](https://forums.kodeco.com/t/restrict-double-single-space-for-textfield-in-rxswift/61385)

<div class="topic-metadata">

**Author:** [@durul](https://forums.kodeco.com/u/durul)\
**Replies:** 2\
**Last updated:** [March 3, 2019, 4:21pm UTC](https://forums.kodeco.com/t/restrict-double-single-space-for-textfield-in-rxswift/61385 "2019-03-03T16:21:57Z")

</div>

Hello, How can I restrict double/single space for TextField in RxSwift? thanks Durul

---

## [Chapter 14 "Creating custom errors"](https://forums.kodeco.com/t/chapter-14-creating-custom-errors/40737)

<div class="topic-metadata">

**Author:** [@rabe](https://forums.kodeco.com/u/rabe)\
**Replies:** 1\
**Last updated:** [March 24, 2018, 7:59pm UTC](https://forums.kodeco.com/t/chapter-14-creating-custom-errors/40737 "2018-03-24T19:59:27Z")

</div>

turns out that using the code suggested won’t work here as error already handled in the RxCocoa Extension on URLSession, or do I missed something?! return session.rx.response(request: request).map() { response, data …

---

## [Deprecated Variable](https://forums.kodeco.com/t/deprecated-variable/53835)

<div class="topic-metadata">

**Author:** [@praleadanut](https://forums.kodeco.com/u/praleadanut)\
**Replies:** 5\
**Last updated:** [February 6, 2019, 5:16am UTC](https://forums.kodeco.com/t/deprecated-variable/53835 "2019-02-06T05:16:06Z")

</div>

Hello Guys! There’s a chapter dedicated to them, and the first example chapter that we need to work on it as well - it’s Variables. They’re deprecated though, so their use is not possible. Is there going to be an updat…

---

## [Emit RxError.unknown inside map array](https://forums.kodeco.com/t/emit-rxerror-unknown-inside-map-array/60381)

<div class="topic-metadata">

**Author:** [@ricardo1980](https://forums.kodeco.com/u/ricardo1980)\
**Replies:** 1\
**Last updated:** [February 6, 2019, 3:00am UTC](https://forums.kodeco.com/t/emit-rxerror-unknown-inside-map-array/60381 "2019-02-06T03:00:23Z")

</div>

Hello, Reading the book, page 169 (Intermission: Handling erroneous input), I see that you use array flatmap to discard data models that cannot be mapped properly, returning nil with a failable init, and flatmap filters…

---

## [Chapter 8: Challenge includes the solution](https://forums.kodeco.com/t/chapter-8-challenge-includes-the-solution/60356)

<div class="topic-metadata">

**Author:** [@linderoth](https://forums.kodeco.com/u/linderoth)\
**Replies:** 1\
**Last updated:** [February 6, 2019, 2:45am UTC](https://forums.kodeco.com/t/chapter-8-challenge-includes-the-solution/60356 "2019-02-06T02:45:34Z")

</div>

I think the challenge code for Chapter 8 already includes the solution.

---

## [Subjects as observers, not observables, page 67](https://forums.kodeco.com/t/subjects-as-observers-not-observables-page-67/58978)

<div class="topic-metadata">

**Author:** [@evs718](https://forums.kodeco.com/u/evs718)\
**Replies:** 3\
**Last updated:** [January 22, 2019, 6:22pm UTC](https://forums.kodeco.com/t/subjects-as-observers-not-observables-page-67/58978 "2019-01-22T18:22:08Z")

</div>

“… is something that can act as both an observable and as an observer. And that something is called a Subject.” - page 67 Perhaps this is explained further along in the book however, as far as I have noticed, in the fir…

---

## [Keyboard in RxCocoa](https://forums.kodeco.com/t/keyboard-in-rxcocoa/43745)

<div class="topic-metadata">

**Author:** [@cuong1112035](https://forums.kodeco.com/u/cuong1112035)\
**Replies:** 0\
**Last updated:** [June 19, 2018, 4:21pm UTC](https://forums.kodeco.com/t/keyboard-in-rxcocoa/43745 "2018-06-19T16:21:54Z")

</div>

Hi all I had an issue with keyboard management and I asked one time on stackoverflow web site. This is the question: ios - Keyboard in RxCocoa - Stack Overflow Currently, I need to write code in a non reactive way to f…

---

## [Chapter 12 - Using flatMapLatest to transforms a single-use data source into a multi-use Observable](https://forums.kodeco.com/t/chapter-12-using-flatmaplatest-to-transforms-a-single-use-data-source-into-a-multi-use-observable/45188)

<div class="topic-metadata">

**Author:** [@hassankhll](https://forums.kodeco.com/u/hassankhll)\
**Replies:** 3\
**Last updated:** [January 9, 2019, 11:39pm UTC](https://forums.kodeco.com/t/chapter-12-using-flatmaplatest-to-transforms-a-single-use-data-source-into-a-multi-use-observable/45188 "2019-01-09T23:39:17Z")

</div>

Hello, I’m working my way through ch 12 and got confused with a piece of code. let search = searchCityName.rx.text .filter { ($0 ?? "").characters.count \> 0 } .flatMapLatest { text in return ApiController.shared.curren…

---

## [Chapter 23: Cannot build Mac Tweetie app](https://forums.kodeco.com/t/chapter-23-cannot-build-mac-tweetie-app/57398)

<div class="topic-metadata">

**Author:** [@bddrumsoft](https://forums.kodeco.com/u/bddrumsoft)\
**Replies:** 1\
**Last updated:** [January 9, 2019, 9:08pm UTC](https://forums.kodeco.com/t/chapter-23-cannot-build-mac-tweetie-app/57398 "2019-01-09T21:08:54Z")

</div>

Hi everyone, I’m trying to build macOS Tweetie app however I got messages “No such module RxSwfit”. I though that Podfile may not be prepared for macOS, so I have changed the line: target 'MacTweetie' do end to versi…

---

## [One-shot or Repeating Timers, Ch 11, p. 236](https://forums.kodeco.com/t/one-shot-or-repeating-timers-ch-11-p-236/58931)

<div class="topic-metadata">

**Author:** [@evs718](https://forums.kodeco.com/u/evs718)\
**Replies:** 5\
**Last updated:** [January 4, 2019, 8:52pm UTC](https://forums.kodeco.com/t/one-shot-or-repeating-timers-ch-11-p-236/58931 "2019-01-04T20:52:21Z")

</div>

This very short explantion needs expansion, especially the use of the “repeat period”. Observable.timer(\_:period:scheduler:)

---

## [How to use SceneCoordinator with UITabBarController?](https://forums.kodeco.com/t/how-to-use-scenecoordinator-with-uitabbarcontroller/29346)

<div class="topic-metadata">

**Author:** [@noahblues](https://forums.kodeco.com/u/noahblues)\
**Replies:** 13\
**Last updated:** [January 4, 2019, 7:28am UTC](https://forums.kodeco.com/t/how-to-use-scenecoordinator-with-uitabbarcontroller/29346 "2019-01-04T07:28:51Z")

</div>

It seems no way to have any transition in UITabBarController’s viewControllers.

---

## [Can someBody Provide a complete solution for SceneCoordinator with UITabBarController in MVVM?](https://forums.kodeco.com/t/can-somebody-provide-a-complete-solution-for-scenecoordinator-with-uitabbarcontroller-in-mvvm/58376)

<div class="topic-metadata">

**Author:** [@hbasin3](https://forums.kodeco.com/u/hbasin3)\
**Replies:** 1\
**Last updated:** [December 27, 2018, 4:56pm UTC](https://forums.kodeco.com/t/can-somebody-provide-a-complete-solution-for-scenecoordinator-with-uitabbarcontroller-in-mvvm/58376 "2018-12-27T16:56:27Z")

</div>

I am not able to create a fully stable Scene Coordinator with UITabBarController. Can somebody help me with it? Thanks

---

## [Chapter 24. subject never completed](https://forums.kodeco.com/t/chapter-24-subject-never-completed/55096)

<div class="topic-metadata">

**Author:** [@mike55](https://forums.kodeco.com/u/mike55)\
**Replies:** 3\
**Last updated:** [December 17, 2018, 8:46pm UTC](https://forums.kodeco.com/t/chapter-24-subject-never-completed/55096 "2018-12-17T20:46:39Z")

</div>

I was going to extend SceneCoordinator to add more transitions types like fade and so forth. I was quite successful doing it except of the moment where subject variable never emits onCompleted. I need it to reset navigat…

---

## [(Version 2) Chapter 6, page 126: wrong DisposeBag used?](https://forums.kodeco.com/t/version-2-chapter-6-page-126-wrong-disposebag-used/55955)

<div class="topic-metadata">

**Author:** [@dariojg](https://forums.kodeco.com/u/dariojg)\
**Replies:** 1\
**Last updated:** [December 12, 2018, 3:40am UTC](https://forums.kodeco.com/t/version-2-chapter-6-page-126-wrong-disposebag-used/55955 "2018-12-12T03:40:54Z")

</div>

In the sample code shown in that page, a PhotosViewController DisposeBag is used (which does not exist at that moment either): newPhotos .ignoreElements() .subscribe(onCompleted: { \[weak self\] in self?.updateNavigat…

---

## [Source code for RxSwift book](https://forums.kodeco.com/t/source-code-for-rxswift-book/57337)

<div class="topic-metadata">

**Author:** [@evs718](https://forums.kodeco.com/u/evs718)\
**Replies:** 5\
**Last updated:** [December 10, 2018, 6:47pm UTC](https://forums.kodeco.com/t/source-code-for-rxswift-book/57337 "2018-12-10T18:47:37Z")

</div>

Page 19 says “This book comes with complete source code for each of the chapters — it’s shipped with the PDF.” However when I downloaded the latest version of your PDF book from raywenderlich dot com, no source code came…

---

## [RxSwift v1.0 Errata](https://forums.kodeco.com/t/rxswift-v1-0-errata/27818)

<div class="topic-metadata">

**Author:** [@crispy8888](https://forums.kodeco.com/u/crispy8888)\
**Replies:** 67\
**Last updated:** [November 18, 2018, 10:00pm UTC](https://forums.kodeco.com/t/rxswift-v1-0-errata/27818 "2018-11-18T22:00:38Z")

</div>

Start of the RxSwift v1.0 Errata thread!

---

## [Suggestions for future releases and book feedback](https://forums.kodeco.com/t/suggestions-for-future-releases-and-book-feedback/30246)

<div class="topic-metadata">

**Author:** [@andrade](https://forums.kodeco.com/u/andrade)\
**Replies:** 3\
**Last updated:** [November 15, 2018, 2:51pm UTC](https://forums.kodeco.com/t/suggestions-for-future-releases-and-book-feedback/30246 "2018-11-15T14:51:07Z")

</div>

Hi, I’ve finished my first read of the book (yes, I plan to read it again :grinning: ) and I would like to leave some suggestions and feedback about the book. First impression, the book is heavy! The first chapters (we…

---

## [Problem in print - chapter 3 page 73](https://forums.kodeco.com/t/problem-in-print-chapter-3-page-73/44015)

<div class="topic-metadata">

**Author:** [@rcrdcst](https://forums.kodeco.com/u/rcrdcst)\
**Replies:** 5\
**Last updated:** [November 13, 2018, 5:15am UTC](https://forums.kodeco.com/t/problem-in-print-chapter-3-page-73/44015 "2018-11-13T05:15:57Z")

</div>

i keep getting the same error that i can’t resolve, can anyone help me? in this function: func print\<T: CustomStringConvertible\>(label: String, event: Event) { print(label, event.element ?? event.error ?? event) } i…

---

## [Chapter 3: Behavior Subjects Example Error](https://forums.kodeco.com/t/chapter-3-behavior-subjects-example-error/54482)

<div class="topic-metadata">

**Author:** [@ariopolis](https://forums.kodeco.com/u/ariopolis)\
**Replies:** 6\
**Last updated:** [November 5, 2018, 2:45pm UTC](https://forums.kodeco.com/t/chapter-3-behavior-subjects-example-error/54482 "2018-11-05T14:45:22Z")

</div>

In the func for CustomStringConvertible, I am getting an error with the following line of code: print(label, event.element ?? event.error ?? event) I get the following error: Playground execution failed: error: RxSwi…

---

## [Book error. UiBindingObserver is deprecated](https://forums.kodeco.com/t/book-error-uibindingobserver-is-deprecated/37628)

<div class="topic-metadata">

**Author:** [@mirceagrelus](https://forums.kodeco.com/u/mirceagrelus)\
**Replies:** 1\
**Last updated:** [November 2, 2018, 7:23pm UTC](https://forums.kodeco.com/t/book-error-uibindingobserver-is-deprecated/37628 "2018-11-02T19:23:27Z")

</div>

The book often references UIBindingObserver, but that’s deprecated. Binder should be used instead

[Previous page](https://forums.kodeco.com/c/books/rxswift/30.md?page=2)

[Next page](https://forums.kodeco.com/c/books/rxswift/30.md?page=4)
