# 📚 Official Books

**URL:** https://forums.kodeco.com/c/books/6.md?page=80

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

**Page:** 81

---

## [Chapters 9-20 in iOS Apprentice Early Access](https://forums.kodeco.com/t/chapters-9-20-in-ios-apprentice-early-access/86959)

<div class="topic-metadata">

**Author:** [@steveb\_la](https://forums.kodeco.com/u/steveb_la)\
**Replies:** 2\
**Last updated:** [January 12, 2020, 7:05pm UTC](https://forums.kodeco.com/t/chapters-9-20-in-ios-apprentice-early-access/86959 "2020-01-12T19:05:12Z")

</div>

When can I expect Chapters 9 - 20 in the iOS\_Early\_Access\_v8.0.0 written up in the .pdf? I’ve worked thru earlier versions on an older iMac. I now have a new Macbook-Pro and would really like to move forward. I’ve got…

---

## [8th Edition: Understanding the SwiftUI Helper Code](https://forums.kodeco.com/t/8th-edition-understanding-the-swiftui-helper-code/80375)

<div class="topic-metadata">

**Author:** [@rwenderlich](https://forums.kodeco.com/u/rwenderlich)\
**Replies:** 2\
**Last updated:** [January 12, 2020, 4:23pm UTC](https://forums.kodeco.com/t/8th-edition-understanding-the-swiftui-helper-code/80375 "2020-01-12T16:23:18Z")

</div>

In the upcoming iOS Apprentice 8th Edition, we are including some SwiftUI helper code in section 2, to make it easier to understand for beginners. Soon, we will be including a detailed explanation of how it works here, …

---

## [Coordinator Pattern (c. 23): Multiple styles of navigation within a coordinator](https://forums.kodeco.com/t/coordinator-pattern-c-23-multiple-styles-of-navigation-within-a-coordinator/87329)

<div class="topic-metadata">

**Author:** [@alekplay](https://forums.kodeco.com/u/alekplay)\
**Replies:** 2\
**Last updated:** [January 12, 2020, 6:45am UTC](https://forums.kodeco.com/t/coordinator-pattern-c-23-multiple-styles-of-navigation-within-a-coordinator/87329 "2020-01-12T06:45:23Z")

</div>

In the Coordinator Pattern introduced in Chapter 23 of Design Patterns by Tutorials we specify that the specific Coordinator only knows the order of view controllers but not how to present them, and vice versa for the sp…

---

## [Chapter 8 unchecked cast warning](https://forums.kodeco.com/t/chapter-8-unchecked-cast-warning/89778)

<div class="topic-metadata">

**Author:** [@acix](https://forums.kodeco.com/u/acix)\
**Replies:** 1\
**Last updated:** [January 12, 2020, 2:26am UTC](https://forums.kodeco.com/t/chapter-8-unchecked-cast-warning/89778 "2020-01-12T02:26:49Z")

</div>

Hi, The readLists function in ListDataManager (chapter 8) causes a “Unchecked cast Any? to kotlin.collections.HashSet” warning in: val itemsHashSet = ArrayList(taskList.value as HashSet) What is the best way to deal …

---

## [Realm Compiled Error in Xcode 11](https://forums.kodeco.com/t/realm-compiled-error-in-xcode-11/89649)

<div class="topic-metadata">

**Author:** [@lmw41](https://forums.kodeco.com/u/lmw41)\
**Replies:** 2\
**Last updated:** [January 12, 2020, 1:58am UTC](https://forums.kodeco.com/t/realm-compiled-error-in-xcode-11/89649 "2020-01-12T01:58:38Z")

</div>

After running final version of the example, Xcode shows the compiled error as below \*\*\*\*\* Terminating app due to uncaught exception ‘RLMException’, reason: ‘Primary key property ‘id’ does not exist on object ‘ToDoItem’’…

---

## [Chapter 2 Compiled Error](https://forums.kodeco.com/t/chapter-2-compiled-error/89447)

<div class="topic-metadata">

**Author:** [@lmw41](https://forums.kodeco.com/u/lmw41)\
**Replies:** 3\
**Last updated:** [January 12, 2020, 1:49am UTC](https://forums.kodeco.com/t/chapter-2-compiled-error/89447 "2020-01-12T01:49:12Z")

</div>

After running final version of the example, Xcode shows the compiled error as below \*\*\*\*\* Terminating app due to uncaught exception ‘RLMException’, reason: ‘Primary key property ‘id’ does not exist on object ‘ToDoItem’’…

---

## [Heads up if you are on macOS Catalina -- bash is no longer the default](https://forums.kodeco.com/t/heads-up-if-you-are-on-macos-catalina-bash-is-no-longer-the-default/93701)

<div class="topic-metadata">

**Author:** [@cupofjoe](https://forums.kodeco.com/u/cupofjoe)\
**Replies:** 2\
**Last updated:** [January 12, 2020, 1:34am UTC](https://forums.kodeco.com/t/heads-up-if-you-are-on-macos-catalina-bash-is-no-longer-the-default/93701 "2020-01-12T01:34:23Z")

</div>

Not sure if this is my problem yet but when the author wrote this book, which is very good by the way, the default shell of OS X was forever and always ‘bash’. The default shell for any user account in macOS Catalina 10…

---

## [Challenge 1: height of binary tree](https://forums.kodeco.com/t/challenge-1-height-of-binary-tree/85536)

<div class="topic-metadata">

**Author:** [@sahsubodh](https://forums.kodeco.com/u/sahsubodh)\
**Replies:** 4\
**Last updated:** [January 12, 2020, 1:02am UTC](https://forums.kodeco.com/t/challenge-1-height-of-binary-tree/85536 "2020-01-12T01:02:48Z")

</div>

Can someone please tell me why does the base case has value -1 ? shouldnt it be 0? guard let node = node else{ return -1; }

---

## [Query about the MVP pattern (Chapter 8 - AAAA)](https://forums.kodeco.com/t/query-about-the-mvp-pattern-chapter-8-aaaa/89314)

<div class="topic-metadata">

**Author:** [@imrhk](https://forums.kodeco.com/u/imrhk)\
**Replies:** 1\
**Last updated:** [January 12, 2020, 12:29am UTC](https://forums.kodeco.com/t/query-about-the-mvp-pattern-chapter-8-aaaa/89314 "2020-01-12T00:29:41Z")

</div>

In the chapter MVP, in MainPresenter.kt, it is written val observer: DisposableObserver\<List\<Movie\>\> get() = object : DisposableObserver\<List\<Movie\>\>() but this means that each get call to observer will create new…

---

## [How to catch sqlite error](https://forums.kodeco.com/t/how-to-catch-sqlite-error/89235)

<div class="topic-metadata">

**Author:** [@mannguyen](https://forums.kodeco.com/u/mannguyen)\
**Replies:** 7\
**Last updated:** [January 11, 2020, 11:41pm UTC](https://forums.kodeco.com/t/how-to-catch-sqlite-error/89235 "2020-01-11T23:41:40Z")

</div>

I added a miragation prepare to make one of my data field unique but i want to catch that error so I can redirect user or show them error alert on my website instead of letting vapor to handle the error showing part

---

## [Chapter 5 - No such module 'Game'](https://forums.kodeco.com/t/chapter-5-no-such-module-game/87759)

<div class="topic-metadata">

**Author:** [@hyegon](https://forums.kodeco.com/u/hyegon)\
**Replies:** 8\
**Last updated:** [January 11, 2020, 11:24pm UTC](https://forums.kodeco.com/t/chapter-5-no-such-module-game/87759 "2020-01-11T23:24:30Z")

</div>

HI …! In my project I get the following error: Error list: BullsEyePlus Group Swift Compiler Error Group /BullsEyePlus/BullsEyePlus/ContentView.swift:33:38: Use of unresolved identifier ‘BullsEyeGame’ BullsEyePlus …

---

## [Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-\[UnCloudNotes.Attachment copyWithZone:\]: unrecognized selector sent to instance 0x60000280fac0'](https://forums.kodeco.com/t/terminating-app-due-to-uncaught-exception-nsinvalidargumentexception-reason-uncloudnotes-attachment-copywithzone-unrecognized-selector-sent-to-instance-0x60000280fac0/88654)

<div class="topic-metadata">

**Author:** [@alexyz](https://forums.kodeco.com/u/alexyz)\
**Replies:** 2\
**Last updated:** [January 11, 2020, 9:37pm UTC](https://forums.kodeco.com/t/terminating-app-due-to-uncaught-exception-nsinvalidargumentexception-reason-uncloudnotes-attachment-copywithzone-unrecognized-selector-sent-to-instance-0x60000280fac0/88654 "2020-01-11T21:37:50Z")

</div>

Hi. I am trying to build the UnCloudNotes app after making the changes in v2 to v3 in chapter 6. I am getting the following traceback: 2019-11-19 19:10:07.317193-0800 UnCloudNotes\[6010:557927\] -\[UnCloudNotes.Attachment …

---

## [Tableview rotation error](https://forums.kodeco.com/t/tableview-rotation-error/88567)

<div class="topic-metadata">

**Author:** [@zoran](https://forums.kodeco.com/u/zoran)\
**Replies:** 2\
**Last updated:** [January 11, 2020, 9:30pm UTC](https://forums.kodeco.com/t/tableview-rotation-error/88567 "2020-01-11T21:30:14Z")

</div>

I’m currently doing the StoreSearch tutorial and as of lat it keeps crashing due to following error… 2019-11-19 18:11:32.056113+1000 StoreSearch\[3317:436206\] \[Window\] Manually adding the rootViewController’s view to the…

---

## [Get error when run the command "swift build -c release" on ubuntu18.04](https://forums.kodeco.com/t/get-error-when-run-the-command-swift-build-c-release-on-ubuntu18-04/88200)

<div class="topic-metadata">

**Author:** [@thammaporn](https://forums.kodeco.com/u/thammaporn)\
**Replies:** 4\
**Last updated:** [January 11, 2020, 8:42pm UTC](https://forums.kodeco.com/t/get-error-when-run-the-command-swift-build-c-release-on-ubuntu18-04/88200 "2020-01-11T20:42:47Z")

</div>

I got the error message after run the command “swift build -c release” as below. /usr/share/swift/usr/bin/swift-build: /usr/lib/x86\_64-linux-gnu/libcurl.so.4: version \`CURL\_OPENSSL\_4’ not found (required by /usr/share/s…

---

## [Question about the MVVM pattern, Chapter 12](https://forums.kodeco.com/t/question-about-the-mvvm-pattern-chapter-12/88215)

<div class="topic-metadata">

**Author:** [@cylon](https://forums.kodeco.com/u/cylon)\
**Replies:** 1\
**Last updated:** [January 11, 2020, 8:17pm UTC](https://forums.kodeco.com/t/question-about-the-mvvm-pattern-chapter-12/88215 "2020-01-11T20:17:37Z")

</div>

Dear Friends, please excuse my not very good English, I hope you understand my question. I’m having a little trouble understanding how the View (Fragment or Activity) should really interact with the ViewModel. For examp…

---

## [Editing notes for next version](https://forums.kodeco.com/t/editing-notes-for-next-version/87812)

<div class="topic-metadata">

**Author:** [@rcritz](https://forums.kodeco.com/u/rcritz)\
**Replies:** 1\
**Last updated:** [January 11, 2020, 7:06pm UTC](https://forums.kodeco.com/t/editing-notes-for-next-version/87812 "2020-01-11T19:06:52Z")

</div>

References to other chapters are formatted incorrectly. See the English Style Guide for correct formatting. A number of fenced code sections aren’t wrapping properly.

---

## [Making the headers of a static table view controller tappable](https://forums.kodeco.com/t/making-the-headers-of-a-static-table-view-controller-tappable/87801)

<div class="topic-metadata">

**Author:** [@mikeneirinck](https://forums.kodeco.com/u/mikeneirinck)\
**Replies:** 1\
**Last updated:** [January 11, 2020, 7:05pm UTC](https://forums.kodeco.com/t/making-the-headers-of-a-static-table-view-controller-tappable/87801 "2020-01-11T19:05:45Z")

</div>

Hi I have a static view table view controller. This has sections and it rows. When I tap on the header of a section I want it to collapse. I thought of adding a tap gesture recognizer to it but I can not find a way to c…

---

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

<div class="topic-metadata">

**Author:** [@culjakj](https://forums.kodeco.com/u/culjakj)\
**Replies:** 1\
**Last updated:** [January 11, 2020, 7:02pm UTC](https://forums.kodeco.com/t/rxswift-v3-0-errata/87761 "2020-01-11T19:02:46Z")

</div>

remembver → remember (p.265) overhelmed → overwhelmed (p.267) Cheers!

---

## [\[CatNap, Chapter 9\] The physics body of the bed doesn't show](https://forums.kodeco.com/t/catnap-chapter-9-the-physics-body-of-the-bed-doesnt-show/29183)

<div class="topic-metadata">

**Author:** [@qiao\_zhang](https://forums.kodeco.com/u/qiao_zhang)\
**Replies:** 3\
**Last updated:** [January 11, 2020, 6:50pm UTC](https://forums.kodeco.com/t/catnap-chapter-9-the-physics-body-of-the-bed-doesnt-show/29183 "2020-01-11T18:50:39Z")

</div>

Hi, everyone. As said in the title, after I added a physics body to the bed node and set the view to show physics, there was no green box shown on simulator and the wooden block that was supposed to be pushed aside was i…

---

## [Possible solution to challenge: Calculating the tile grid (p. 997, chapter 50)](https://forums.kodeco.com/t/possible-solution-to-challenge-calculating-the-tile-grid-p-997-chapter-50/87599)

<div class="topic-metadata">

**Author:** [@danielmey](https://forums.kodeco.com/u/danielmey)\
**Replies:** 1\
**Last updated:** [January 11, 2020, 6:34pm UTC](https://forums.kodeco.com/t/possible-solution-to-challenge-calculating-the-tile-grid-p-997-chapter-50/87599 "2020-01-11T18:34:23Z")

</div>

I tried my hand at the challenge proposed in the “Landscape” chapter 50 on p. 997 (page 988 and chapter 39 old version). The challenge was to avoid hard coding the values of the item height and width as well as the margi…

---

## [Chapter 8 Challenge #1](https://forums.kodeco.com/t/chapter-8-challenge-1/87526)

<div class="topic-metadata">

**Author:** [@vale\_cocoa](https://forums.kodeco.com/u/vale_cocoa)\
**Replies:** 1\
**Last updated:** [January 11, 2020, 6:04pm UTC](https://forums.kodeco.com/t/chapter-8-challenge-1/87526 "2020-01-11T18:04:22Z")

</div>

I was able to have this sort of working with this code: newPhotos .ignoreOutput() .filter { \[unowned self\] \_ in self.images.value.count == 6 } .sink(receiveCompletion: { \[unowned self\] \_ in …

---

## [How can I get iOS apprentice Seventh edition?](https://forums.kodeco.com/t/how-can-i-get-ios-apprentice-seventh-edition/86980)

<div class="topic-metadata">

**Author:** [@superkookai](https://forums.kodeco.com/u/superkookai)\
**Replies:** 1\
**Last updated:** [January 11, 2020, 4:23pm UTC](https://forums.kodeco.com/t/how-can-i-get-ios-apprentice-seventh-edition/86980 "2020-01-11T16:23:26Z")

</div>

Hi: I bought iOS apprentice Sixth edition but would like to get pdf/ePub of Seventh edition for study all UIKit in the book, how can I get those edition of the book?? (In the web site now only early update of Eighth edit…

---

## [Missing information](https://forums.kodeco.com/t/missing-information/86946)

<div class="topic-metadata">

**Author:** [@game\_gecko](https://forums.kodeco.com/u/game_gecko)\
**Replies:** 1\
**Last updated:** [January 11, 2020, 4:12pm UTC](https://forums.kodeco.com/t/missing-information/86946 "2020-01-11T16:12:43Z")

</div>

I thought I post this since it is not included in the book, but IN Chapter 5: Camera, Page 129, it doesn’t mention in GameScene.swift to comment out debugDrawPlayableArea() in the didMove function and boundsCheckZombie…

---

## [Zombie Game Over Scene mistake](https://forums.kodeco.com/t/zombie-game-over-scene-mistake/86944)

<div class="topic-metadata">

**Author:** [@game\_gecko](https://forums.kodeco.com/u/game_gecko)\
**Replies:** 1\
**Last updated:** [January 11, 2020, 3:59pm UTC](https://forums.kodeco.com/t/zombie-game-over-scene-mistake/86944 "2020-01-11T15:59:45Z")

</div>

In the book you make the zombie lose a life every time he collides with the granny “lives -= 1” .It is put in func zombieHit(enemy: SKSpirteNode) after loseCats(). It is supposed to be put above the “let blinkTimes” cons…

---

## [Chapter 8 " Add a last-modified header to the request"](https://forums.kodeco.com/t/chapter-8-add-a-last-modified-header-to-the-request/86804)

<div class="topic-metadata">

**Author:** [@mike](https://forums.kodeco.com/u/mike)\
**Replies:** 2\
**Last updated:** [January 11, 2020, 3:55pm UTC](https://forums.kodeco.com/t/chapter-8-add-a-last-modified-header-to-the-request/86804 "2020-01-11T15:55:10Z")

</div>

After the new Relay created: “private let lastModified = BehaviorRelay\<String?\>(value: nil)” , then accept() was called two times: “if let lastModifiedString = try? String(contentsOf: modifiedFileURL, encoding: .utf8)…

---

## [Problem with tuples](https://forums.kodeco.com/t/problem-with-tuples/26333)

<div class="topic-metadata">

**Author:** [@jaclawiciel](https://forums.kodeco.com/u/jaclawiciel)\
**Replies:** 3\
**Last updated:** [January 11, 2020, 3:47pm UTC](https://forums.kodeco.com/t/problem-with-tuples/26333 "2020-01-11T15:47:41Z")

</div>

I practice tuples mini-exercises in Chapter 3 about types and operations. I don’t think that it should behave like that but if I make a mistake somewhere please correct me. When I declare a tuple like so: let dateWit…

---

## [Use of undeclared type 'CGFLoat'](https://forums.kodeco.com/t/use-of-undeclared-type-cgfloat/86770)

<div class="topic-metadata">

**Author:** [@game\_gecko](https://forums.kodeco.com/u/game_gecko)\
**Replies:** 1\
**Last updated:** [January 11, 2020, 3:21pm UTC](https://forums.kodeco.com/t/use-of-undeclared-type-cgfloat/86770 "2020-01-11T15:21:05Z")

</div>

when I try to build the game(page 97), I get the error in MyUtils.swift, Use of undeclared type ‘CGFLoat’ from this code: extension CGFloat { static func random() → CGFloat { return CGFloat(Float(arc4random()) / Float…

---

## [Error - Does not conform 'Parameter'](https://forums.kodeco.com/t/error-does-not-conform-parameter/94232)

<div class="topic-metadata">

**Author:** [@anan](https://forums.kodeco.com/u/anan)\
**Replies:** 2\
**Last updated:** [January 11, 2020, 12:42pm UTC](https://forums.kodeco.com/t/error-does-not-conform-parameter/94232 "2020-01-11T12:42:58Z")

</div>

Hi anyone knows about this issue and how to resolve it? Thank you :blush:

---

## [Not works savings in Section 2: Checklists](https://forums.kodeco.com/t/not-works-savings-in-section-2-checklists/92459)

<div class="topic-metadata">

**Author:** [@ucelme](https://forums.kodeco.com/u/ucelme)\
**Replies:** 1\
**Last updated:** [January 8, 2020, 3:25am UTC](https://forums.kodeco.com/t/not-works-savings-in-section-2-checklists/92459 "2020-01-08T03:25:36Z")

</div>

I made all steps from the book and also downloaded final project Checklists, but it doesn’t work saving data in either cases. How I can fix saving feature to Checklists?

---

## [Import KituraOpenAPI doesn't work \[Chapter 6\]](https://forums.kodeco.com/t/import-kituraopenapi-doesnt-work-chapter-6/93723)

<div class="topic-metadata">

**Author:** [@danjanes](https://forums.kodeco.com/u/danjanes)\
**Replies:** 2\
**Last updated:** [January 8, 2020, 2:13am UTC](https://forums.kodeco.com/t/import-kituraopenapi-doesnt-work-chapter-6/93723 "2020-01-08T02:13:58Z")

</div>

Any idea about importing KituraOpenAPI? I’ve even tracked the site’s release notes: Kitura-OpenAPI/README.md at master · Kitura/Kitura-OpenAPI · GitHub I get this error message: “No such module ‘KituraOpenAPI.’” Any i…

[Previous page](https://forums.kodeco.com/c/books/6.md?page=79)

[Next page](https://forums.kodeco.com/c/books/6.md?page=81)
