# 📚 Official Books

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

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

**Page:** 57

---

## [Swift-nio-http2](https://forums.kodeco.com/t/swift-nio-http2/65866)

<div class="topic-metadata">

**Author:** [@swiftlearnerforlife](https://forums.kodeco.com/u/swiftlearnerforlife)\
**Replies:** 8\
**Last updated:** [January 24, 2021, 8:02pm UTC](https://forums.kodeco.com/t/swift-nio-http2/65866 "2021-01-24T20:02:51Z")

</div>

Now that Swift nio supports http2 - is this book going to be updated as mentioned in the book to incorporate sending push notifications from Vapor? If so, any idea on when we can expect an update?

---

## [Dinodefense Ch19 Pathfinding: set\<GKEntity\> no sort](https://forums.kodeco.com/t/dinodefense-ch19-pathfinding-set-gkentity-no-sort/130943)

<div class="topic-metadata">

**Author:** [@wangying117](https://forums.kodeco.com/u/wangying117)\
**Replies:** 0\
**Last updated:** [January 24, 2021, 1:12pm UTC](https://forums.kodeco.com/t/dinodefense-ch19-pathfinding-set-gkentity-no-sort/130943 "2021-01-24T13:12:48Z")

</div>

Hello. DinoDefense coders, During the challenge 2 in Chapter 19 Pathfinding, there is a piece of code which is used to sort all entities in the scene by y-position. in GameScene.swift override func didFinishUpdate() …

---

## [Data loss in realm when application run for long time](https://forums.kodeco.com/t/data-loss-in-realm-when-application-run-for-long-time/130864)

<div class="topic-metadata">

**Author:** [@madhurjain](https://forums.kodeco.com/u/madhurjain)\
**Replies:** 0\
**Last updated:** [January 23, 2021, 10:46am UTC](https://forums.kodeco.com/t/data-loss-in-realm-when-application-run-for-long-time/130864 "2021-01-23T10:46:55Z")

</div>

Hello All, I am using the realm database for one of my application. In the application, we got the data every 200 milliseconds. In each response, we get 23 parameters which we have to search In the DB first then either …

---

## [The new Chapter 9 is better than the old Chapter 7?](https://forums.kodeco.com/t/the-new-chapter-9-is-better-than-the-old-chapter-7/112584)

<div class="topic-metadata">

**Author:** [@king9671152](https://forums.kodeco.com/u/king9671152)\
**Replies:** 3\
**Last updated:** [January 22, 2021, 10:47pm UTC](https://forums.kodeco.com/t/the-new-chapter-9-is-better-than-the-old-chapter-7/112584 "2021-01-22T22:47:57Z")

</div>

In the 2nd edition, they’ve moved the old Chapter 7 to Chapter 9 with a different author. And it has a wrong start by saying that we need to create a new file named ScoreView.swift in the Practice group when in fact the…

---

## [Chapter 4 playgrounds not compiling Xcode 12.0.1](https://forums.kodeco.com/t/chapter-4-playgrounds-not-compiling-xcode-12-0-1/121245)

<div class="topic-metadata">

**Author:** [@rpitman](https://forums.kodeco.com/u/rpitman)\
**Replies:** 4\
**Last updated:** [January 21, 2021, 7:24pm UTC](https://forums.kodeco.com/t/chapter-4-playgrounds-not-compiling-xcode-12-0-1/121245 "2021-01-21T19:24:13Z")

</div>

I know the Forums have had some messages referring to Playgrounds as being buggy. When I try to run either the Starter or the Final playground code for Chapter 4, I get the following error message for line 20 of the main…

---

## [SIMD Metal Documentation](https://forums.kodeco.com/t/simd-metal-documentation/130492)

<div class="topic-metadata">

**Author:** [@quaternionboy](https://forums.kodeco.com/u/quaternionboy)\
**Replies:** 3\
**Last updated:** [January 19, 2021, 11:16am UTC](https://forums.kodeco.com/t/simd-metal-documentation/130492 "2021-01-19T11:16:02Z")

</div>

Hi there! Is there any documentation about SIMD in Metal like float4x4 constructors: identity, rotation… ?!? Thanks in advance

---

## [MTLTexture to CIImage conversion generates wrong colors](https://forums.kodeco.com/t/mtltexture-to-ciimage-conversion-generates-wrong-colors/130275)

<div class="topic-metadata">

**Author:** [@oscar053](https://forums.kodeco.com/u/oscar053)\
**Replies:** 2\
**Last updated:** [January 17, 2021, 10:59am UTC](https://forums.kodeco.com/t/mtltexture-to-ciimage-conversion-generates-wrong-colors/130275 "2021-01-17T10:59:30Z")

</div>

Hi all, I have an array of MTLTexture, that comes from my Renderer draw method. When I get MTLTexture, I want to use it as SCNMaterial diffuse.contents in a SCNScene, and after that, export it as CIImage and then to jp…

---

## [Advanced image processing in Metal](https://forums.kodeco.com/t/advanced-image-processing-in-metal/129935)

<div class="topic-metadata">

**Author:** [@omarfakhr](https://forums.kodeco.com/u/omarfakhr)\
**Replies:** 4\
**Last updated:** [January 15, 2021, 4:36pm UTC](https://forums.kodeco.com/t/advanced-image-processing-in-metal/129935 "2021-01-15T16:36:20Z")

</div>

Hi all, hi Caroline, I have been programming my prototype on Matlab. And I have read a lot of doing advanced image processing. In Matlab it was no problem. However I need to integrate this on swift. The image size is re…

---

## [Update for iOS 14 SwiftUI Views](https://forums.kodeco.com/t/update-for-ios-14-swiftui-views/130197)

<div class="topic-metadata">

**Author:** [@swiftlearnerforlife](https://forums.kodeco.com/u/swiftlearnerforlife)\
**Replies:** 0\
**Last updated:** [January 15, 2021, 12:05pm UTC](https://forums.kodeco.com/t/update-for-ios-14-swiftui-views/130197 "2021-01-15T12:05:13Z")

</div>

Is there an ETA when this book will be updated to include the new SwiftUI views introduced in iOS 14 such as LazyVStack and LazyVGrid ?

---

## [Chapter 10: Value of type 'ARView' has no member 'session'](https://forums.kodeco.com/t/chapter-10-value-of-type-arview-has-no-member-session/130095)

<div class="topic-metadata">

**Author:** [@cimbis](https://forums.kodeco.com/u/cimbis)\
**Replies:** 1\
**Last updated:** [January 15, 2021, 8:38am UTC](https://forums.kodeco.com/t/chapter-10-value-of-type-arview-has-no-member-session/130095 "2021-01-15T08:38:46Z")

</div>

Am unable to compile code for Chapter 10. First of all, in the book it’s written to add some code to updateView(\_:context:) as follows: However there’s only updateUIView function available. When looking at the final …

---

## [Errata for Living by the Code 2nd Edition](https://forums.kodeco.com/t/errata-for-living-by-the-code-2nd-edition/130111)

<div class="topic-metadata">

**Author:** [@jellodiil](https://forums.kodeco.com/u/jellodiil)\
**Replies:** 0\
**Last updated:** [January 14, 2021, 12:04pm UTC](https://forums.kodeco.com/t/errata-for-living-by-the-code-2nd-edition/130111 "2021-01-14T12:04:04Z")

</div>

Creating this topic to catch any typos and bugs in the 2nd Edition of Living by the Code.

---

## [Real world pricing/load metrics for production/qa environment](https://forums.kodeco.com/t/real-world-pricing-load-metrics-for-production-qa-environment/130030)

<div class="topic-metadata">

**Author:** [@3a4ot](https://forums.kodeco.com/u/3a4ot)\
**Replies:** 0\
**Last updated:** [January 13, 2021, 11:26am UTC](https://forums.kodeco.com/t/real-world-pricing-load-metrics-for-production-qa-environment/130030 "2021-01-13T11:26:53Z")

</div>

Hello. I’m very interested in mastering swift on a server, everything is brilliant until it’s come to deploy on for QA/prod environment. In a lot of articles, the deployment process described very roughly and with the wo…

---

## [\#import "\_.metal"](https://forums.kodeco.com/t/import-metal/129652)

<div class="topic-metadata">

**Author:** [@quaternionboy](https://forums.kodeco.com/u/quaternionboy)\
**Replies:** 2\
**Last updated:** [January 13, 2021, 10:58am UTC](https://forums.kodeco.com/t/import-metal/129652 "2021-01-13T10:58:36Z")

</div>

Hi there!:grin: Let’s say that: I have two metal files A and B containing shaders that I want to keep separate I need to call the same helper function (not a shader) from both files Putting the helper function in a t…

---

## [Not seeing iOS Apprentice in my products list](https://forums.kodeco.com/t/not-seeing-ios-apprentice-in-my-products-list/129682)

<div class="topic-metadata">

**Author:** [@steveb\_la](https://forums.kodeco.com/u/steveb_la)\
**Replies:** 4\
**Last updated:** [January 12, 2021, 5:28pm UTC](https://forums.kodeco.com/t/not-seeing-ios-apprentice-in-my-products-list/129682 "2021-01-12T17:28:56Z")

</div>

Is this book still being supported? I’m not seeing it in my purchased Products list. (I will post this in the General Discussions forum also)

---

## [Chapter 16: Protocols](https://forums.kodeco.com/t/chapter-16-protocols/129737)

<div class="topic-metadata">

**Author:** [@kampai32](https://forums.kodeco.com/u/kampai32)\
**Replies:** 1\
**Last updated:** [January 11, 2021, 2:11am UTC](https://forums.kodeco.com/t/chapter-16-protocols/129737 "2021-01-11T02:11:06Z")

</div>

There was another post on here about this section of chapter 16 but its been closed. I’m not super sure what’s going on here. I understand that the variable accountType is a type of Account, and that its set to Bitcoi…

---

## [Chapter 2 Starter App](https://forums.kodeco.com/t/chapter-2-starter-app/129702)

<div class="topic-metadata">

**Author:** [@digithat](https://forums.kodeco.com/u/digithat)\
**Replies:** 0\
**Last updated:** [January 10, 2021, 12:14am UTC](https://forums.kodeco.com/t/chapter-2-starter-app/129702 "2021-01-10T00:14:57Z")

</div>

Hey it’s Sai, I loved the first chapter and I also built the ARQuick Look and it worked perfectly, but I really want to know how did you build the application inside the starter folder in the first place. I’m new to thi…

---

## [Question about Chapter 8 Challenge Part 1: share() publisher](https://forums.kodeco.com/t/question-about-chapter-8-challenge-part-1-share-publisher/129329)

<div class="topic-metadata">

**Author:** [@xlzhsteven](https://forums.kodeco.com/u/xlzhsteven)\
**Replies:** 2\
**Last updated:** [January 9, 2021, 1:41pm UTC](https://forums.kodeco.com/t/question-about-chapter-8-challenge-part-1-share-publisher/129329 "2021-01-09T13:41:52Z")

</div>

let newPhotos = photos.selectedPhotos .filter { $0.size.width \> $0.size.height } .prefix(while: { \[unowned self\] \_ in return self.images.value.count \< 6 }) .share() newPhotos .map { \[unowned self\] newImage…

---

## [Chapter 20 Challenge](https://forums.kodeco.com/t/chapter-20-challenge/129657)

<div class="topic-metadata">

**Author:** [@jackyoung](https://forums.kodeco.com/u/jackyoung)\
**Replies:** 0\
**Last updated:** [January 9, 2021, 10:36am UTC](https://forums.kodeco.com/t/chapter-20-challenge/129657 "2021-01-09T10:36:49Z")

</div>

There appears to be a difference between the source code on the starter and final challenges on chapter 20, which causes the last test to fail even if you have the right solution. In the mock jokes service the book tells…

---

## [3. Types & Operations - Getting characters](https://forums.kodeco.com/t/3-types-operations-getting-characters/129629)

<div class="topic-metadata">

**Author:** [@pauldemeter](https://forums.kodeco.com/u/pauldemeter)\
**Replies:** 1\
**Last updated:** [January 9, 2021, 1:27am UTC](https://forums.kodeco.com/t/3-types-operations-getting-characters/129629 "2021-01-09T01:27:30Z")

</div>

There is a error in the Getting characters section. See attached image. “H is 71” should read "H is 72"

---

## [Flutter scrollable widgets error](https://forums.kodeco.com/t/flutter-scrollable-widgets-error/128264)

<div class="topic-metadata">

**Author:** [@sullz](https://forums.kodeco.com/u/sullz)\
**Replies:** 1\
**Last updated:** [January 8, 2021, 4:51pm UTC](https://forums.kodeco.com/t/flutter-scrollable-widgets-error/128264 "2021-01-08T16:51:55Z")

</div>

Hello, I completed the scrollable widgets section in the flutter course but kept on getting this error , I have searched different ways to solve it but all to no avail, i’m stucked here, please help Below is the error i…

---

## [Chapter 10 ... page 173! yelp site "sign up" failed](https://forums.kodeco.com/t/chapter-10-page-173-yelp-site-sign-up-failed/91645)

<div class="topic-metadata">

**Author:** [@hyegon](https://forums.kodeco.com/u/hyegon)\
**Replies:** 5\
**Last updated:** [January 8, 2021, 4:44pm UTC](https://forums.kodeco.com/t/chapter-10-page-173-yelp-site-sign-up-failed/91645 "2021-01-08T16:44:37Z")

</div>

Hi …! Why me? “Log In - Yelp” You can’t “sign up” on the site above. Like the attached video … I want to know the status of others. thank! https://www.dropbox.com/s/cnxk9f8diu00s31/yelp\_notsignup.mp4?dl=0

---

## [Using 'Just' vs simply passing the value?](https://forums.kodeco.com/t/using-just-vs-simply-passing-the-value/129597)

<div class="topic-metadata">

**Author:** [@bauermusic](https://forums.kodeco.com/u/bauermusic)\
**Replies:** 0\
**Last updated:** [January 8, 2021, 11:24am UTC](https://forums.kodeco.com/t/using-just-vs-simply-passing-the-value/129597 "2021-01-08T11:24:38Z")

</div>

Quite possible that later on, the real usefulness of a Just publisher will become clear. But at the first introduction, I cannot think of a real use case where I would send a ‘Just’ instance, only to get its value back s…

---

## [Making realistic flowing water with SceneKit, \[inside Xcode\]](https://forums.kodeco.com/t/making-realistic-flowing-water-with-scenekit-inside-xcode/29895)

<div class="topic-metadata">

**Author:** [@hacker\_link](https://forums.kodeco.com/u/hacker_link)\
**Replies:** 1\
**Last updated:** [January 8, 2021, 1:41am UTC](https://forums.kodeco.com/t/making-realistic-flowing-water-with-scenekit-inside-xcode/29895 "2021-01-08T01:41:18Z")

</div>

I need to make/animate flowing water in with sceneKit inside Xcode, but i can’t come up with anything except a variation of the fire particle system \[with some attributes changed {color to blue, birth rate up real high, …

---

## [Cannot find sample code anywhere](https://forums.kodeco.com/t/cannot-find-sample-code-anywhere/129024)

<div class="topic-metadata">

**Author:** [@bauermusic](https://forums.kodeco.com/u/bauermusic)\
**Replies:** 6\
**Last updated:** [January 7, 2021, 6:55pm UTC](https://forums.kodeco.com/t/cannot-find-sample-code-anywhere/129024 "2021-01-07T18:55:37Z")

</div>

Been searching for a long time now for the sample code. The link in the book leads to the store. There are no links to any sample code. Finally found something on GitHub (is that official?), but it looks different than t…

---

## [Chapter 2 - Type Safety clarity](https://forums.kodeco.com/t/chapter-2-type-safety-clarity/129328)

<div class="topic-metadata">

**Author:** [@pauldemeter](https://forums.kodeco.com/u/pauldemeter)\
**Replies:** 1\
**Last updated:** [January 7, 2021, 1:17am UTC](https://forums.kodeco.com/t/chapter-2-type-safety-clarity/129328 "2021-01-07T01:17:11Z")

</div>

In the topic Type safety a sentence reads, “3.14159 is a double, but you already defined it as an int.” To make this clearer to the reader, you could let them know that “it” is referencing the declared variable “myInteg…

---

## [@StateObject Vs @ObservedObject in SwiftUI](https://forums.kodeco.com/t/stateobject-vs-observedobject-in-swiftui/129283)

<div class="topic-metadata">

**Author:** [@prateekraj89](https://forums.kodeco.com/u/prateekraj89)\
**Replies:** 1\
**Last updated:** [January 6, 2021, 12:15am UTC](https://forums.kodeco.com/t/stateobject-vs-observedobject-in-swiftui/129283 "2021-01-06T00:15:33Z")

</div>

@StateObject Vs @ObservedObject, What are the key differences and when to use what?

---

## [Chapter 2 support materials](https://forums.kodeco.com/t/chapter-2-support-materials/129120)

<div class="topic-metadata">

**Author:** [@dice099](https://forums.kodeco.com/u/dice099)\
**Replies:** 1\
**Last updated:** [January 6, 2021, 12:11am UTC](https://forums.kodeco.com/t/chapter-2-support-materials/129120 "2021-01-06T00:11:25Z")

</div>

I’m trying to download the support materials for chapter 2 (Starter/RGBullseye file) in Git, but I’m kind of inexperienced with Git and not exactly what I’m supposed to download? When I try to download a file its saved a…

---

## [Chapter 25: Priority Queue](https://forums.kodeco.com/t/chapter-25-priority-queue/112609)

<div class="topic-metadata">

**Author:** [@pulkitap](https://forums.kodeco.com/u/pulkitap)\
**Replies:** 3\
**Last updated:** [January 3, 2021, 12:56pm UTC](https://forums.kodeco.com/t/chapter-25-priority-queue/112609 "2021-01-03T12:56:18Z")

</div>

Hi, Actually in this chapter, it is mentioned that Swift default “sort” function uses “Introsort” in the background. But with the release of Swift 5, this “sort” function started using “Timsort”. And as this book is u…

---

## [Debugging Core-Data and Swift UI](https://forums.kodeco.com/t/debugging-core-data-and-swift-ui/129019)

<div class="topic-metadata">

**Author:** [@theapapp](https://forums.kodeco.com/u/theapapp)\
**Replies:** 1\
**Last updated:** [January 1, 2021, 5:52pm UTC](https://forums.kodeco.com/t/debugging-core-data-and-swift-ui/129019 "2021-01-01T17:52:37Z")

</div>

I have written a new Core-Data app with a Header and Detail record. It was working fine until I added a Transformer. Now the App shuts down on launch, closing the debugger in Xcode when it does this, and previews are n…

---

## [Selecting detail records from a master question](https://forums.kodeco.com/t/selecting-detail-records-from-a-master-question/128354)

<div class="topic-metadata">

**Author:** [@theapapp](https://forums.kodeco.com/u/theapapp)\
**Replies:** 1\
**Last updated:** [January 1, 2021, 3:53pm UTC](https://forums.kodeco.com/t/selecting-detail-records-from-a-master-question/128354 "2021-01-01T15:53:18Z")

</div>

I am trying to understand why this is still providing me all the detailed records from the master record. I am expecting to get only those records related to the current recipient, instead each iteration shows me all th…

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

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