# 📚 Official Books

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

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

**Page:** 51

---

## [UIViewRepresentable in SwiftUI](https://forums.kodeco.com/t/uiviewrepresentable-in-swiftui/138136)

<div class="topic-metadata">

**Author:** [@richmond\_jam](https://forums.kodeco.com/u/richmond_jam)\
**Replies:** 0\
**Last updated:** [April 20, 2021, 4:02am UTC](https://forums.kodeco.com/t/uiviewrepresentable-in-swiftui/138136 "2021-04-20T04:02:31Z")

</div>

Hello Bill, In chapter 15, I study how to use complex interface. And when I use UIViewRepresentable protocol, I found I would not implement every require method; For example, I just implement two methods without require…

---

## [Chapter 3 RxRelay](https://forums.kodeco.com/t/chapter-3-rxrelay/129378)

<div class="topic-metadata">

**Author:** [@odyflame](https://forums.kodeco.com/u/odyflame)\
**Replies:** 6\
**Last updated:** [April 20, 2021, 1:14am UTC](https://forums.kodeco.com/t/chapter-3-rxrelay/129378 "2021-04-20T01:14:40Z")

</div>

when i .bootstrap/sh clear and run, there is no problem with RxSwift, but when import RxRelay, there is an error no such modul RxRelay what should i do? i cleanup buiild, run .bootstrap and more…but it doesn’t working …

---

## [Error in 1. AR Quick Start - Reality File version](https://forums.kodeco.com/t/error-in-1-ar-quick-start-reality-file-version/138117)

<div class="topic-metadata">

**Author:** [@pakopablos](https://forums.kodeco.com/u/pakopablos)\
**Replies:** 1\
**Last updated:** [April 20, 2021, 12:51am UTC](https://forums.kodeco.com/t/error-in-1-ar-quick-start-reality-file-version/138117 "2021-04-20T00:51:55Z")

</div>

Hi, when I try to run on my device I get the following error: Fatal error: ‘try!’ expression unexpectedly raised an error: Reality File version 2 is not supported. (Latest supported version is 1.): file TinyToyTank/View…

---

## [Chapter 6, TextField with Formatter](https://forums.kodeco.com/t/chapter-6-textfield-with-formatter/137011)

<div class="topic-metadata">

**Author:** [@tchelyzt](https://forums.kodeco.com/u/tchelyzt)\
**Replies:** 6\
**Last updated:** [April 19, 2021, 2:00pm UTC](https://forums.kodeco.com/t/chapter-6-textfield-with-formatter/137011 "2021-04-19T14:00:20Z")

</div>

I decided to try and use a TextField with other types as described in Chapter 6. I built a simple interface with string, int and double fields (see below) and I believe I built and wired it correctly. The string works as…

---

## [Draw Path in SwiftUI framework](https://forums.kodeco.com/t/draw-path-in-swiftui-framework/137876)

<div class="topic-metadata">

**Author:** [@richmond\_jam](https://forums.kodeco.com/u/richmond_jam)\
**Replies:** 1\
**Last updated:** [April 19, 2021, 1:02pm UTC](https://forums.kodeco.com/t/draw-path-in-swiftui-framework/137876 "2021-04-19T13:02:07Z")

</div>

Hello Bill, After I read chapter 13： Drawing & Custom Graphics in yours, I try to complete some sharp with swiftUI but I do not know how to use “public mutating func addArc(tangent1End p1: CGPoint, tangent2End p2: CGPo…

---

## [Chapter 13. StackNavigationViewStyle()](https://forums.kodeco.com/t/chapter-13-stacknavigationviewstyle/136470)

<div class="topic-metadata">

**Author:** [@tchelyzt](https://forums.kodeco.com/u/tchelyzt)\
**Replies:** 3\
**Last updated:** [April 19, 2021, 12:44pm UTC](https://forums.kodeco.com/t/chapter-13-stacknavigationviewstyle/136470 "2021-04-19T12:44:03Z")

</div>

So I had a problem in chapter 13 and to ensure it wasn’t my version, I loaded the book’s “final” project. In welcome.swift, I added .navigationViewStyle(StackNavigationViewStyle()) to the NavigationView. I ran it with …

---

## [Chapter 25 : issue with "Value of type 'Session' has no member 'set'"](https://forums.kodeco.com/t/chapter-25-issue-with-value-of-type-session-has-no-member-set/138015)

<div class="topic-metadata">

**Author:** [@tlepiez](https://forums.kodeco.com/u/tlepiez)\
**Replies:** 2\
**Last updated:** [April 19, 2021, 11:38am UTC](https://forums.kodeco.com/t/chapter-25-issue-with-value-of-type-session-has-no-member-set/138015 "2021-04-19T11:38:27Z")

</div>

Hi, I have an issue in Chapter 25 , with the two handlers resetPasswordHandler and resetPasswordPostHandler, I can’t build the project anymore, while it was running before. I tried to add the reset password function (Ch…

---

## [TextField: How to catch editing changes](https://forums.kodeco.com/t/textfield-how-to-catch-editing-changes/137403)

<div class="topic-metadata">

**Author:** [@tchelyzt](https://forums.kodeco.com/u/tchelyzt)\
**Replies:** 4\
**Last updated:** [April 18, 2021, 11:19am UTC](https://forums.kodeco.com/t/textfield-how-to-catch-editing-changes/137403 "2021-04-18T11:19:05Z")

</div>

With TextFields I can provide a closure in the onEditingChange parameter which fires when editing starts and editing ends (a Bool indicating start/end). I can also provide a closure in the onCommit parameter which fires …

---

## [Source Code Expired For iOS 14 Some Chapter](https://forums.kodeco.com/t/source-code-expired-for-ios-14-some-chapter/138008)

<div class="topic-metadata">

**Author:** [@elegantswift](https://forums.kodeco.com/u/elegantswift)\
**Replies:** 0\
**Last updated:** [April 18, 2021, 9:13am UTC](https://forums.kodeco.com/t/source-code-expired-for-ios-14-some-chapter/138008 "2021-04-18T09:13:38Z")

</div>

I found some sections of the source code have certain problems on iOS 14+, is there a source code repository to submit merge request to fix the related errors.

---

## [Chapter 20: Translation service no longer supports free accounts](https://forums.kodeco.com/t/chapter-20-translation-service-no-longer-supports-free-accounts/118990)

<div class="topic-metadata">

**Author:** [@rocketdocaz](https://forums.kodeco.com/u/rocketdocaz)\
**Replies:** 2\
**Last updated:** [April 17, 2021, 8:58pm UTC](https://forums.kodeco.com/t/chapter-20-translation-service-no-longer-supports-free-accounts/118990 "2021-04-17T20:58:10Z")

</div>

The Yandex translation service no longer (as of 8/15/20) supports free accounts, so the API key included in the project is no longer valid. Using this causes fetch(for:to:) to always fail with an error, causing the untr…

---

## [\[Heroku\] - Deploying Vapor 4](https://forums.kodeco.com/t/heroku-deploying-vapor-4/137418)

<div class="topic-metadata">

**Author:** [@ingricharddavid](https://forums.kodeco.com/u/ingricharddavid)\
**Replies:** 4\
**Last updated:** [April 16, 2021, 5:39pm UTC](https://forums.kodeco.com/t/heroku-deploying-vapor-4/137418 "2021-04-16T17:39:19Z")

</div>

Hi! I finished updating my project from “Vapor 3” to “Vapor 4” and I am trying to deploy on Heroku but the following error is generated: Has anyone been through the same thing? I would appreciate a help.

---

## [BroadcastChannel Example does not work when using Run but works when using Debug](https://forums.kodeco.com/t/broadcastchannel-example-does-not-work-when-using-run-but-works-when-using-debug/116025)

<div class="topic-metadata">

**Author:** [@supotuco](https://forums.kodeco.com/u/supotuco)\
**Replies:** 4\
**Last updated:** [April 15, 2021, 3:19pm UTC](https://forums.kodeco.com/t/broadcastchannel-example-does-not-work-when-using-run-but-works-when-using-debug/116025 "2021-04-15T15:19:11Z")

</div>

The following example from the book works when you use Debug, but not Run. I’m using a MacBook Blockquote fun main() { val fruitArray = arrayOf(“Apple”, “Banana”, “Pear”, “Grapes”, “Strawberry”) // 1 val kotlinCha…

---

## [Inferring QoS && Priority Inversion](https://forums.kodeco.com/t/inferring-qos-priority-inversion/103618)

<div class="topic-metadata">

**Author:** [@anony](https://forums.kodeco.com/u/anony)\
**Replies:** 2\
**Last updated:** [April 15, 2021, 1:30pm UTC](https://forums.kodeco.com/t/inferring-qos-priority-inversion/103618 "2021-04-15T13:30:18Z")

</div>

1. In chapter 3 “Inferring QoS” part, If you submit a task with a higher quality of service than the queue has, the queue’s level will increase. Not only that, but all the operations enqueued will also have their priori…

---

## [isFull method produces an error in chapter 13](https://forums.kodeco.com/t/isfull-method-produces-an-error-in-chapter-13/137810)

<div class="topic-metadata">

**Author:** [@arrmixer](https://forums.kodeco.com/u/arrmixer)\
**Replies:** 0\
**Last updated:** [April 15, 2021, 12:53pm UTC](https://forums.kodeco.com/t/isfull-method-produces-an-error-in-chapter-13/137810 "2021-04-15T12:53:50Z")

</div>

I’m using Kotlin 1.4.32. At the beginning of the chapter, the producer example adding the isFull boolean produces an error by the compiler: “Using ‘isFull: Boolean’ is an error. Will be removed in next releases without …

---

## [Use of GPU in parallel with CPU](https://forums.kodeco.com/t/use-of-gpu-in-parallel-with-cpu/137520)

<div class="topic-metadata">

**Author:** [@imcloughlin](https://forums.kodeco.com/u/imcloughlin)\
**Replies:** 4\
**Last updated:** [April 15, 2021, 11:26am UTC](https://forums.kodeco.com/t/use-of-gpu-in-parallel-with-cpu/137520 "2021-04-15T11:26:10Z")

</div>

Hi I am trying to understand the parallel processing nature of using metal and if I am taking advantage of it fully enough (at all ?). I have a draw function which I have set up to make a set of calculation on the CPU,…

---

## [How to implement dynamic type with collection view compositional layout?](https://forums.kodeco.com/t/how-to-implement-dynamic-type-with-collection-view-compositional-layout/137772)

<div class="topic-metadata">

**Author:** [@skyfoxs](https://forums.kodeco.com/u/skyfoxs)\
**Replies:** 0\
**Last updated:** [April 15, 2021, 2:56am UTC](https://forums.kodeco.com/t/how-to-implement-dynamic-type-with-collection-view-compositional-layout/137772 "2021-04-15T02:56:58Z")

</div>

Hi. To support dynamic type in the collection view, in the book we create a custom collection view layout. I have a question. Can we use the collection view compositional layout and still support the dynamic type? Cur…

---

## [What is an Argument Buffer?](https://forums.kodeco.com/t/what-is-an-argument-buffer/137473)

<div class="topic-metadata">

**Author:** [@lducot2](https://forums.kodeco.com/u/lducot2)\
**Replies:** 2\
**Last updated:** [April 14, 2021, 6:36am UTC](https://forums.kodeco.com/t/what-is-an-argument-buffer/137473 "2021-04-14T06:36:38Z")

</div>

Hello - This question may sound rather basic, but I am having a difficult time distinguishing an argument buffer from a “normal” buffer. I thought if I tagged a member of a struct with an id\[\[\]\] attribute the struct was…

---

## [Exception on Pet Companion app](https://forums.kodeco.com/t/exception-on-pet-companion-app/117385)

<div class="topic-metadata">

**Author:** [@arrmixer](https://forums.kodeco.com/u/arrmixer)\
**Replies:** 3\
**Last updated:** [April 12, 2021, 11:56pm UTC](https://forums.kodeco.com/t/exception-on-pet-companion-app/117385 "2021-04-12T23:56:25Z")

</div>

Greetings, In chapter 13, I’m getting an android.view.ViewRootImpl$CalledFromWrongThreadException on the Pet Companion app. I’m not familiar with coroutines yet but I move the global scope call to the main thread above …

---

## [Coffee Quest (iOS 13) Chapters 10-13 won't Run](https://forums.kodeco.com/t/coffee-quest-ios-13-chapters-10-13-wont-run/105437)

<div class="topic-metadata">

**Author:** [@and1](https://forums.kodeco.com/u/and1)\
**Replies:** 9\
**Last updated:** [April 12, 2021, 10:22am UTC](https://forums.kodeco.com/t/coffee-quest-ios-13-chapters-10-13-wont-run/105437 "2021-04-12T10:22:57Z")

</div>

Hi, enjoying the book. Great resource. It seems that each final version of the Coffee Quest App (chapters 10 - 13) fails to load. All have the same error. Did other people find the same thing? As a workaround, I downl…

---

## [Chapter 15 Create Heap with Cube Map](https://forums.kodeco.com/t/chapter-15-create-heap-with-cube-map/137463)

<div class="topic-metadata">

**Author:** [@hougoul](https://forums.kodeco.com/u/hougoul)\
**Replies:** 1\
**Last updated:** [April 12, 2021, 12:25am UTC](https://forums.kodeco.com/t/chapter-15-create-heap-with-cube-map/137463 "2021-04-12T00:25:16Z")

</div>

I’m trying to move the sky box texture in the MTL heap too. To achieved it I had to a change the code: zip(textures, heapTextures).forEach { (texture, heapTexture) in var region = MTLRegionMake2D(0, 0, text…

---

## [Sending email with vapor](https://forums.kodeco.com/t/sending-email-with-vapor/89289)

<div class="topic-metadata">

**Author:** [@mannguyen](https://forums.kodeco.com/u/mannguyen)\
**Replies:** 4\
**Last updated:** [April 11, 2021, 10:13pm UTC](https://forums.kodeco.com/t/sending-email-with-vapor/89289 "2021-04-11T22:13:50Z")

</div>

I’m creating a contact us page for my website that using a contact form. I’m looking for a way to handle that contact form: get all the data filled out by the user (email, title, message) then send it to my own email for…

---

## [Texture Sets in Xcode Asset Catalog](https://forums.kodeco.com/t/texture-sets-in-xcode-asset-catalog/114991)

<div class="topic-metadata">

**Author:** [@eoey1](https://forums.kodeco.com/u/eoey1)\
**Replies:** 5\
**Last updated:** [April 11, 2021, 9:34pm UTC](https://forums.kodeco.com/t/texture-sets-in-xcode-asset-catalog/114991 "2021-04-11T21:34:07Z")

</div>

Hello, I want to use texture sets as discussed in chapter 6. However, I would like to store several texture sets inside a folder in the Assets.xcassets folder. So I could have a folder called Swimming Pool Tiles and t…

---

## [Create a Model during runtime](https://forums.kodeco.com/t/create-a-model-during-runtime/120966)

<div class="topic-metadata">

**Author:** [@octavo](https://forums.kodeco.com/u/octavo)\
**Replies:** 4\
**Last updated:** [April 11, 2021, 6:51am UTC](https://forums.kodeco.com/t/create-a-model-during-runtime/120966 "2021-04-11T06:51:36Z")

</div>

Hi Is it possible to create a new Model during runtime? The use case is a franchise mgmt system which will create a table for each store to record staff operations. What’s the best practice? Many thanks.

---

## [Chapter 24 (MVVM) API Error Running Starter/Final](https://forums.kodeco.com/t/chapter-24-mvvm-api-error-running-starter-final/119724)

<div class="topic-metadata">

**Author:** [@jstheoriginal](https://forums.kodeco.com/u/jstheoriginal)\
**Replies:** 1\
**Last updated:** [April 11, 2021, 6:36am UTC](https://forums.kodeco.com/t/chapter-24-mvvm-api-error-running-starter-final/119724 "2021-04-11T06:36:31Z")

</div>

When running the starter project (and final as well), after hooking up the iOS View Controller bindings, I’m getting this rxFatalErrorInDebug API error: \[Response\]: \<NSHTTPURLResponse: 0x600001b708e0\> { URL: https://api…

---

## [Chapter 12 - Improve Challenge Solution](https://forums.kodeco.com/t/chapter-12-improve-challenge-solution/29258)

<div class="topic-metadata">

**Author:** [@louisbur](https://forums.kodeco.com/u/louisbur)\
**Replies:** 2\
**Last updated:** [April 10, 2021, 2:04pm UTC](https://forums.kodeco.com/t/chapter-12-improve-challenge-solution/29258 "2021-04-10T14:04:18Z")

</div>

Hi, The solution for chapter 12’s challenge is: let textSearch = searchCityName.rx.controlEvent(.editingDidEndOnExit).asObservable() let temperature = tempSwitch.rx.controlEvent(.valueChanged).asObservable() let searc…

---

## [Unable to import py game](https://forums.kodeco.com/t/unable-to-import-py-game/137372)

<div class="topic-metadata">

**Author:** [@aar13](https://forums.kodeco.com/u/aar13)\
**Replies:** 0\
**Last updated:** [April 10, 2021, 9:39am UTC](https://forums.kodeco.com/t/unable-to-import-py-game/137372 "2021-04-10T09:39:16Z")

</div>

i tried downloading pygame but now am unable to import it

---

## [Sudo lsof -i :8080](https://forums.kodeco.com/t/sudo-lsof-i-8080/121382)

<div class="topic-metadata">

**Author:** [@hassan20896](https://forums.kodeco.com/u/hassan20896)\
**Replies:** 2\
**Last updated:** [April 10, 2021, 6:26am UTC](https://forums.kodeco.com/t/sudo-lsof-i-8080/121382 "2021-04-10T06:26:50Z")

</div>

error codes.vapor.application : bind(descriptor:ptr:bytes:): Can’t assign requested address (errno: 49) A common answer I find on web is that smoother process is running on port 8080 But I have checked it using sudo lo…

---

## [Missing files in Basic Core Data tutorial](https://forums.kodeco.com/t/missing-files-in-basic-core-data-tutorial/131098)

<div class="topic-metadata">

**Author:** [@javelin](https://forums.kodeco.com/u/javelin)\
**Replies:** 2\
**Last updated:** [April 10, 2021, 5:38am UTC](https://forums.kodeco.com/t/missing-files-in-basic-core-data-tutorial/131098 "2021-04-10T05:38:52Z")

</div>

I’m working through video #20 in the series, but the project folders are missing a Tags folder, and TagsView. This one introduces transients, and is the most complete one in the series, that uses SwiftUI, which is new to…

---

## [Links to the book’s source code](https://forums.kodeco.com/t/links-to-the-book-s-source-code/76423)

<div class="topic-metadata">

**Author:** [@tobitech](https://forums.kodeco.com/u/tobitech)\
**Replies:** 4\
**Last updated:** [April 10, 2021, 5:28am UTC](https://forums.kodeco.com/t/links-to-the-book-s-source-code/76423 "2021-04-10T05:28:04Z")

</div>

Hello, Please can someone provide the link to download the source code for the book. Thanks.

---

## [Source Code Download Page](https://forums.kodeco.com/t/source-code-download-page/27906)

<div class="topic-metadata">

**Author:** [@crispy8888](https://forums.kodeco.com/u/crispy8888)\
**Replies:** 6\
**Last updated:** [April 10, 2021, 5:26am UTC](https://forums.kodeco.com/t/source-code-download-page/27906 "2021-04-10T05:26:46Z")

</div>

Grab the source code for the book from here: https://www.raywenderlich.com/store/advanced-apple-debugging/advanced-apple-debugging-source-code

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

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