# 📚 Official Books

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

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

**Page:** 103

---

## [Git merge conflict in chapter 18 (flyweight pattern)](https://forums.kodeco.com/t/git-merge-conflict-in-chapter-18-flyweight-pattern/60802)

<div class="topic-metadata">

**Author:** [@alekplay](https://forums.kodeco.com/u/alekplay)\
**Replies:** 1\
**Last updated:** [January 28, 2019, 5:40am UTC](https://forums.kodeco.com/t/git-merge-conflict-in-chapter-18-flyweight-pattern/60802 "2019-01-28T05:40:12Z")

</div>

At the bottom of chapter 18 (pages 265 and 266), the flyweight pattern, there is a git merge conflict. \<\<\<\<\<\<\< HEADFeel free to add functionality to YetiJokes and even change up the jokes! =======Feel free to add funct…

---

## [Chapter 23 Bank coins issue](https://forums.kodeco.com/t/chapter-23-bank-coins-issue/60743)

<div class="topic-metadata">

**Author:** [@sergeydi](https://forums.kodeco.com/u/sergeydi)\
**Replies:** 1\
**Last updated:** [January 27, 2019, 6:24am UTC](https://forums.kodeco.com/t/chapter-23-bank-coins-issue/60743 "2019-01-27T06:24:53Z")

</div>

Hi, The code: if contactNode.physicsBody?.categoryBitMask == BitMaskHouse { print("House collision happens") } never executes, so coins can’t be banked. Issue also happens on last chapter and bug-fix versions

---

## [Chapter 15 rendering artifacts](https://forums.kodeco.com/t/chapter-15-rendering-artifacts/60654)

<div class="topic-metadata">

**Author:** [@bpashch](https://forums.kodeco.com/u/bpashch)\
**Replies:** 4\
**Last updated:** [January 27, 2019, 5:06am UTC](https://forums.kodeco.com/t/chapter-15-rendering-artifacts/60654 "2019-01-27T05:06:49Z")

</div>

I’m getting these artifacts when running Chapter 15 provided final project on late 2013 rMBP 15" (GT 750m GPU) Any ideas why this might be happening?

---

## [ListMaker Fragments: Did Anyone Complete This Project?](https://forums.kodeco.com/t/listmaker-fragments-did-anyone-complete-this-project/60738)

<div class="topic-metadata">

**Author:** [@mazen\_kilani](https://forums.kodeco.com/u/mazen_kilani)\
**Replies:** 1\
**Last updated:** [January 26, 2019, 11:22pm UTC](https://forums.kodeco.com/t/listmaker-fragments-did-anyone-complete-this-project/60738 "2019-01-26T23:22:44Z")

</div>

I completed first 10 chapters, and due to differences between the book and Android Studio 3.3, struggled thru it but managed to get it done. I am sceptical that I shall ever use the knowledge gained (would anyone use Sha…

---

## [Chapter 15 iOS apprentice v 7 reading data](https://forums.kodeco.com/t/chapter-15-ios-apprentice-v-7-reading-data/60591)

<div class="topic-metadata">

**Author:** [@mantonelli](https://forums.kodeco.com/u/mantonelli)\
**Replies:** 4\
**Last updated:** [January 26, 2019, 1:12pm UTC](https://forums.kodeco.com/t/chapter-15-ios-apprentice-v-7-reading-data/60591 "2019-01-26T13:12:55Z")

</div>

I have successfully written and read the .plist file but when I open a file the text of the list items that were checked are right justified. this only happens when reading from a file. any idea what is wring?

---

## [My Locations: mapView.addAnnotations gives EXC\_BAD\_ACCESS](https://forums.kodeco.com/t/my-locations-mapview-addannotations-gives-exc-bad-access/58167)

<div class="topic-metadata">

**Author:** [@hastoro11](https://forums.kodeco.com/u/hastoro11)\
**Replies:** 8\
**Last updated:** [January 26, 2019, 4:00am UTC](https://forums.kodeco.com/t/my-locations-mapview-addannotations-gives-exc-bad-access/58167 "2019-01-26T04:00:31Z")

</div>

When I try to run the My Locations app on the simulator it works well, but using it on the device it always gives an error at the mapView.addAnnotations(locations) line. The Location class conforms to the MKAnnotation p…

---

## [Templating with Leaf](https://forums.kodeco.com/t/templating-with-leaf/60410)

<div class="topic-metadata">

**Author:** [@swiftios](https://forums.kodeco.com/u/swiftios)\
**Replies:** 7\
**Last updated:** [January 24, 2019, 10:12pm UTC](https://forums.kodeco.com/t/templating-with-leaf/60410 "2019-01-24T22:12:52Z")

</div>

Hello, i’m trying to do form with Fluent i don’t know what’s i’m missing.

---

## [Shuffling a dictionary similar to an array](https://forums.kodeco.com/t/shuffling-a-dictionary-similar-to-an-array/59977)

<div class="topic-metadata">

**Author:** [@dpalme](https://forums.kodeco.com/u/dpalme)\
**Replies:** 2\
**Last updated:** [January 24, 2019, 3:31pm UTC](https://forums.kodeco.com/t/shuffling-a-dictionary-similar-to-an-array/59977 "2019-01-24T15:31:27Z")

</div>

Is there a way to shuffle a dictionary similar to the way we can shuffle an array?

---

## [Question about ignored properties](https://forums.kodeco.com/t/question-about-ignored-properties/60388)

<div class="topic-metadata">

**Author:** [@magicmike](https://forums.kodeco.com/u/magicmike)\
**Replies:** 2\
**Last updated:** [January 22, 2019, 9:34pm UTC](https://forums.kodeco.com/t/question-about-ignored-properties/60388 "2019-01-22T21:34:05Z")

</div>

First of all, great book! Really enjoying it so far. My question is regarding different types of ignoring properties. What is the difference between a dynamic property stored in ignoredProperties() and a non-dynamic pr…

---

## [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…

---

## [Unauthorized Response](https://forums.kodeco.com/t/unauthorized-response/59866)

<div class="topic-metadata">

**Author:** [@arnold\_74](https://forums.kodeco.com/u/arnold_74)\
**Replies:** 17\
**Last updated:** [January 22, 2019, 6:12pm UTC](https://forums.kodeco.com/t/unauthorized-response/59866 "2019-01-22T18:12:13Z")

</div>

I followed the code of the book, but unfortunately I get an 401 unauthorized error, when I try to test to enter an acronym through Rested.app. XCode gives me this error: Abort.401: User not authenticated. (GuardMiddlew…

---

## [CH14: Build GBuffer Pass Descriptor](https://forums.kodeco.com/t/ch14-build-gbuffer-pass-descriptor/60376)

<div class="topic-metadata">

**Author:** [@mjeragh](https://forums.kodeco.com/u/mjeragh)\
**Replies:** 1\
**Last updated:** [January 22, 2019, 2:07pm UTC](https://forums.kodeco.com/t/ch14-build-gbuffer-pass-descriptor/60376 "2019-01-22T14:07:18Z")

</div>

After adding all the code up to page 404 I get this error when executing on a iMac retina screen \[MTLDebugBlitCommandEncoder validateCopyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toTexture:destinationS…

---

## [Chapter 7: Image - What is the difference between these 2 commands](https://forums.kodeco.com/t/chapter-7-image-what-is-the-difference-between-these-2-commands/60109)

<div class="topic-metadata">

**Author:** [@mennabah](https://forums.kodeco.com/u/mennabah)\
**Replies:** 2\
**Last updated:** [January 21, 2019, 5:11pm UTC](https://forums.kodeco.com/t/chapter-7-image-what-is-the-difference-between-these-2-commands/60109 "2019-01-21T17:11:06Z")

</div>

Hi Thanks @lolgrep for this great book! My question is related to “chapter 7: Image” about inspecting the block object’s members. I found out that you mentioned 2 ways for this, either by: querying for the object kn…

---

## [Role-based Access Control](https://forums.kodeco.com/t/role-based-access-control/60039)

<div class="topic-metadata">

**Author:** [@pyae](https://forums.kodeco.com/u/pyae)\
**Replies:** 6\
**Last updated:** [January 21, 2019, 3:29pm UTC](https://forums.kodeco.com/t/role-based-access-control/60039 "2019-01-21T15:29:32Z")

</div>

How could I return different model based on role? Could I use two different middleware on same route with two different function? Like adminRoute.get("day", use: adminDay) managerRoute.get("day", use: managerDay)

---

## [Using SQLite in a production app](https://forums.kodeco.com/t/using-sqlite-in-a-production-app/59050)

<div class="topic-metadata">

**Author:** [@carlosnaguilera](https://forums.kodeco.com/u/carlosnaguilera)\
**Replies:** 3\
**Last updated:** [January 20, 2019, 7:26pm UTC](https://forums.kodeco.com/t/using-sqlite-in-a-production-app/59050 "2019-01-20T19:26:49Z")

</div>

Hi, I’m trying to implement a small server for an iOS app that I have. This server won’t have write operations from the outside. It will create its own data and will store it, ideally, in an SQLite database. Few records…

---

## [Ch 14 - G-buffer](https://forums.kodeco.com/t/ch-14-g-buffer/60176)

<div class="topic-metadata">

**Author:** [@danielloriaux](https://forums.kodeco.com/u/danielloriaux)\
**Replies:** 3\
**Last updated:** [January 20, 2019, 10:55am UTC](https://forums.kodeco.com/t/ch-14-g-buffer/60176 "2019-01-20T10:55:41Z")

</div>

Hi all, I have a question about the G-buffer. The concept of it is understood and I even got it to work on another project of mine. However, the book only covers one shader (excluding the composition), which creates the…

---

## [Chapter 11 Testing](https://forums.kodeco.com/t/chapter-11-testing/55789)

<div class="topic-metadata">

**Author:** [@bababoega](https://forums.kodeco.com/u/bababoega)\
**Replies:** 9\
**Last updated:** [January 19, 2019, 12:12am UTC](https://forums.kodeco.com/t/chapter-11-testing/55789 "2019-01-19T00:12:06Z")

</div>

When trying to test on linux using docker compose, when I run docker-compose up --abort-on-container-exit when compiling Swift Module ‘TILAppPackageTests’ (1 sources) I get multiple errors complaining about ‘AcronymTe…

---

## [Vapor vs PHP and others?](https://forums.kodeco.com/t/vapor-vs-php-and-others/58508)

<div class="topic-metadata">

**Author:** [@cscott](https://forums.kodeco.com/u/cscott)\
**Replies:** 3\
**Last updated:** [January 18, 2019, 7:50pm UTC](https://forums.kodeco.com/t/vapor-vs-php-and-others/58508 "2019-01-18T19:50:11Z")

</div>

I’m a long time server-side developer who’s made my career developing sites using ASP, PHP, and primarily CFScript (new syntax for ColdFusion), plus supporting front end languages JS, CSS, and Html of course. Am using R…

---

## [Setting view controllers frame in PickMeUpViewController & Coordinators](https://forums.kodeco.com/t/setting-view-controllers-frame-in-pickmeupviewcontroller-coordinators/59966)

<div class="topic-metadata">

**Author:** [@thaxsillion](https://forums.kodeco.com/u/thaxsillion)\
**Replies:** 2\
**Last updated:** [January 17, 2019, 9:40pm UTC](https://forums.kodeco.com/t/setting-view-controllers-frame-in-pickmeupviewcontroller-coordinators/59966 "2019-01-17T21:40:31Z")

</div>

First of all, I wanted to say the book is awesome and has really filled the knowledge gap for me, especially the Dependency Injection chapter. Fantastic work, best book so far I’ve read on iOS. As for the questions: 1. …

---

## [Creating Face Based AR iOS 12 Issue](https://forums.kodeco.com/t/creating-face-based-ar-ios-12-issue/60042)

<div class="topic-metadata">

**Author:** [@ddeger](https://forums.kodeco.com/u/ddeger)\
**Replies:** 1\
**Last updated:** [January 17, 2019, 4:56pm UTC](https://forums.kodeco.com/t/creating-face-based-ar-ios-12-issue/60042 "2019-01-17T16:56:48Z")

</div>

Hi, The code for book chapter Creating Face based AR is not properly working. When you try to switch masks nothing is happening. For instance, the code for ARSceneView Delegate function renderer(\_ renderer: SCNSceneRend…

---

## [No materials folder in chapter 1](https://forums.kodeco.com/t/no-materials-folder-in-chapter-1/59988)

<div class="topic-metadata">

**Author:** [@karma17](https://forums.kodeco.com/u/karma17)\
**Replies:** 1\
**Last updated:** [January 17, 2019, 7:59am UTC](https://forums.kodeco.com/t/no-materials-folder-in-chapter-1/59988 "2019-01-17T07:59:47Z")

</div>

We’re following the tutorial page 35. It says to move the materials folder but there is just one problem—there is no materials folder in the assets folder we downloaded… Any thoughts?

---

## [What exactly is a delegate?](https://forums.kodeco.com/t/what-exactly-is-a-delegate/59441)

<div class="topic-metadata">

**Author:** [@amitsrivastava](https://forums.kodeco.com/u/amitsrivastava)\
**Replies:** 4\
**Last updated:** [January 17, 2019, 6:47am UTC](https://forums.kodeco.com/t/what-exactly-is-a-delegate/59441 "2019-01-17T06:47:25Z")

</div>

Hi, I have read the chapter again and again still I am not able to understand … So I am inside – class ChecklistViewController: UITableViewController { Then there are methods - override func tableView(\_ tableView: UI…

---

## [\[solved\] Checklist: tableView in addItem()](https://forums.kodeco.com/t/solved-checklist-tableview-in-additem/17102)

<div class="topic-metadata">

**Author:** [@knoidc](https://forums.kodeco.com/u/knoidc)\
**Replies:** 2\
**Last updated:** [July 9, 2016, 7:26am UTC](https://forums.kodeco.com/t/solved-checklist-tableview-in-additem/17102 "2016-07-09T07:26:41Z")

</div>

Hello. \`func addItemViewController(controller: AddItemViewController, didFinishAddingItem item: ChecklistItem) { let newRowIndex = items.count items.append(item) let indexPath = NSIndexPath(forRow: new…

---

## [Which conda env to use for Chapter 5?](https://forums.kodeco.com/t/which-conda-env-to-use-for-chapter-5/59873)

<div class="topic-metadata">

**Author:** [@thomm](https://forums.kodeco.com/u/thomm)\
**Replies:** 2\
**Last updated:** [January 16, 2019, 10:09am UTC](https://forums.kodeco.com/t/which-conda-env-to-use-for-chapter-5/59873 "2019-01-16T10:09:53Z")

</div>

Some minor feedback. At the start of Chapter 5 we just jump right in to the content. It would be preferable to let us know which conda env we are supposed to be using. In Chapter 4 we’re told to deactivate the turienv en…

---

## [Lack of data in tutorials creates friction](https://forums.kodeco.com/t/lack-of-data-in-tutorials-creates-friction/59875)

<div class="topic-metadata">

**Author:** [@thomm](https://forums.kodeco.com/u/thomm)\
**Replies:** 2\
**Last updated:** [January 16, 2019, 10:09am UTC](https://forums.kodeco.com/t/lack-of-data-in-tutorials-creates-friction/59875 "2019-01-16T10:09:03Z")

</div>

Some more feedback. Not having the sample data in the expected places creates friction in completing the exercises. It’s not too hard to copy the files to their expected location, or change the paths in the provided code…

---

## [Cannot convert type (Request, User)](https://forums.kodeco.com/t/cannot-convert-type-request-user/59844)

<div class="topic-metadata">

**Author:** [@arnold\_74](https://forums.kodeco.com/u/arnold_74)\
**Replies:** 2\
**Last updated:** [January 15, 2019, 6:39pm UTC](https://forums.kodeco.com/t/cannot-convert-type-request-user/59844 "2019-01-15T18:39:34Z")

</div>

I am reworking the authentication example and unfortunately this route gives me the error cannot convert value of type '(Request, User) throws -\> EventLoopFuture\<User.Public\>' to expected argument type '(Request, \_) thr…

---

## [Chapter 18: Basic Authentication - Segmentation fault:11](https://forums.kodeco.com/t/chapter-18-basic-authentication-segmentation-fault-11/59626)

<div class="topic-metadata">

**Author:** [@arnold\_74](https://forums.kodeco.com/u/arnold_74)\
**Replies:** 5\
**Last updated:** [January 15, 2019, 4:32pm UTC](https://forums.kodeco.com/t/chapter-18-basic-authentication-segmentation-fault-11/59626 "2019-01-15T16:32:14Z")

</div>

I am following the book and adding user with password is ok. But if I want to build the project for testing the middleware i get this segmentation error. It seems this segmentation error comes from UsersController.swift …

---

## [Chapters 23-24 - Stop on each breakpoint without honouring return value](https://forums.kodeco.com/t/chapters-23-24-stop-on-each-breakpoint-without-honouring-return-value/59792)

<div class="topic-metadata">

**Author:** [@gorloff](https://forums.kodeco.com/u/gorloff)\
**Replies:** 1\
**Last updated:** [January 15, 2019, 11:24am UTC](https://forums.kodeco.com/t/chapters-23-24-stop-on-each-breakpoint-without-honouring-return-value/59792 "2019-01-15T11:24:10Z")

</div>

As it said in book: If handler function returns True the execution will be stopped on that breakpoint In other cases, it will continue. Unfortunately, I experience the problem: The execution stops on each breakpoint …

---

## [Android Apprentice Chap 1 Setup](https://forums.kodeco.com/t/android-apprentice-chap-1-setup/59419)

<div class="topic-metadata">

**Author:** [@whodges007](https://forums.kodeco.com/u/whodges007)\
**Replies:** 4\
**Last updated:** [January 15, 2019, 10:30am UTC](https://forums.kodeco.com/t/android-apprentice-chap-1-setup/59419 "2019-01-15T10:30:02Z")

</div>

Hello, I am setting up for Timefighter in the Android Apprentice project. After the setup is completed and the code is loaded, I get an error on this import statement. import android.support.v7.app.AppCompatActivity W…

---

## [Typo on page 127 of v0.21](https://forums.kodeco.com/t/typo-on-page-127-of-v0-21/59767)

<div class="topic-metadata">

**Author:** [@thomm](https://forums.kodeco.com/u/thomm)\
**Replies:** 1\
**Last updated:** [January 14, 2019, 11:53pm UTC](https://forums.kodeco.com/t/typo-on-page-127-of-v0-21/59767 "2019-01-14T23:53:26Z")

</div>

Small typo. First line on page 127 reads The len() function works on any Python collection object, and it returns th elength of should presumably be The len() function works on any Python collection object, and it …

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

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