# SwiftUI Apprentice

**URL:** https://forums.kodeco.com/c/books/swiftui-apprentice/79.md?page=1

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

**Page:** 2

---

## [Chapter 4 Issues](https://forums.kodeco.com/t/chapter-4-issues/170741)

<div class="topic-metadata">

**Author:** [@brettb](https://forums.kodeco.com/u/brettb)\
**Replies:** 7\
**Last updated:** [May 15, 2022, 12:38am UTC](https://forums.kodeco.com/t/chapter-4-issues/170741 "2022-05-15T00:38:28Z")

</div>

I’ve just started on this book and have run into a few issues: Chapter 4, Page 108 of the ebook, under the “Creating a form” title. The current (as of May 10 2022) version of Xcode throws an error because the Section m…

---

## [Lots of "Error: This image is missing a width attribute"](https://forums.kodeco.com/t/lots-of-error-this-image-is-missing-a-width-attribute/168851)

<div class="topic-metadata">

**Author:** [@ebelinski](https://forums.kodeco.com/u/ebelinski)\
**Replies:** 3\
**Last updated:** [April 13, 2022, 10:22am UTC](https://forums.kodeco.com/t/lots-of-error-this-image-is-missing-a-width-attribute/168851 "2022-04-13T10:22:03Z")

</div>

Some pictures in this book are missing with the message “Error: This image is missing a width attribute”. For example there are 3 images missing in the first chapter. Other chapters have this issue too. Can these be fix…

---

## [Chap 6 - @State showHistory = false](https://forums.kodeco.com/t/chap-6-state-showhistory-false/163377)

<div class="topic-metadata">

**Author:** [@u3qu3oxyvflx](https://forums.kodeco.com/u/u3qu3oxyvflx)\
**Replies:** 1\
**Last updated:** [February 10, 2022, 1:31am UTC](https://forums.kodeco.com/t/chap-6-state-showhistory-false/163377 "2022-02-10T01:31:26Z")

</div>

At the beginning of Chapter 6, you say “…you should always have a single source of truth.” and “A @State property is a source of truth” But later, you have @State private var showHistory = false in both WelcomeVi…

---

## [Chapter 20 starter project missing?](https://forums.kodeco.com/t/chapter-20-starter-project-missing/162648)

<div class="topic-metadata">

**Author:** [@patvdp](https://forums.kodeco.com/u/patvdp)\
**Replies:** 1\
**Last updated:** [January 20, 2022, 9:54am UTC](https://forums.kodeco.com/t/chapter-20-starter-project-missing/162648 "2022-01-20T09:54:57Z")

</div>

The starter project files already have all the code that is mentioned in the chapter.

---

## [I wanted to contribute to the GitHub repo](https://forums.kodeco.com/t/i-wanted-to-contribute-to-the-github-repo/158755)

<div class="topic-metadata">

**Author:** [@iphoneanshul](https://forums.kodeco.com/u/iphoneanshul)\
**Replies:** 0\
**Last updated:** [November 27, 2021, 10:17pm UTC](https://forums.kodeco.com/t/i-wanted-to-contribute-to-the-github-repo/158755 "2021-11-27T22:17:47Z")

</div>

Hi, I would like to contribute to the Github repo like updating the code to the new syntax as the current repo code is showing the older syntex of swift UI.

---

## [Chapter 10 HIITFit challenge folder](https://forums.kodeco.com/t/chapter-10-hiitfit-challenge-folder/157606)

<div class="topic-metadata">

**Author:** [@supernova2108](https://forums.kodeco.com/u/supernova2108)\
**Replies:** 2\
**Last updated:** [November 17, 2021, 5:19am UTC](https://forums.kodeco.com/t/chapter-10-hiitfit-challenge-folder/157606 "2021-11-17T05:19:29Z")

</div>

Hi. So I have been following along the excellent tutorial until Chapter 10 when we are asked to do the challenge to fix the design of HIITFit. The project supplied in the challenge directory contains some new code that I…

---

## [Child NavigationView issue with iOS 15](https://forums.kodeco.com/t/child-navigationview-issue-with-ios-15/154090)

<div class="topic-metadata">

**Author:** [@shadowsheep](https://forums.kodeco.com/u/shadowsheep)\
**Replies:** 2\
**Last updated:** [October 21, 2021, 1:42am UTC](https://forums.kodeco.com/t/child-navigationview-issue-with-ios-15/154090 "2021-10-21T01:42:26Z")

</div>

Hi guys! I’m trying the sample code with Xcode 13. I’ve found this issue on tree view child NavigtionView as described here swiftui - Child NavigationView doesn't honor modifiers on iOS 15 - Stack Overflow. I cannot thin…

---

## [Ch11 Property wrappers](https://forums.kodeco.com/t/ch11-property-wrappers/153522)

<div class="topic-metadata">

**Author:** [@og1](https://forums.kodeco.com/u/og1)\
**Replies:** 1\
**Last updated:** [October 18, 2021, 1:57am UTC](https://forums.kodeco.com/t/ch11-property-wrappers/153522 "2021-10-18T01:57:44Z")

</div>

Hi @audrey Hope this post finds you well :slight\_smile: Can I please ask you to explain in other words (if time allows, with an example would be great) your following sentence (page 280)? projectedValue is … or a proj…

---

## [Ch.3 Cannot convert value of type 'URL.Type' to expected argument type 'URL'](https://forums.kodeco.com/t/ch-3-cannot-convert-value-of-type-url-type-to-expected-argument-type-url/150783)

<div class="topic-metadata">

**Author:** [@shang14](https://forums.kodeco.com/u/shang14)\
**Replies:** 2\
**Last updated:** [October 7, 2021, 4:10pm UTC](https://forums.kodeco.com/t/ch-3-cannot-convert-value-of-type-url-type-to-expected-argument-type-url/150783 "2021-10-07T16:10:28Z")

</div>

To build the Ch.3 code, just got this error " Cannot convert value of type ‘URL.Type’ to expected argument type ‘URL’" Is this the issue of Xcode 13?

---

## [Chapter 23 RESTed alternative](https://forums.kodeco.com/t/chapter-23-rested-alternative/149601)

<div class="topic-metadata">

**Author:** [@audrey](https://forums.kodeco.com/u/audrey)\
**Replies:** 0\
**Last updated:** [October 6, 2021, 12:53pm UTC](https://forums.kodeco.com/t/chapter-23-rested-alternative/149601 "2021-10-06T12:53:51Z")

</div>

This chapter uses the RESTed app to send API requests. This app is no longer available. Suggested alternative apps: Insomnia Postman Or check for more suggestions in the Vapor thread.

---

## [Error in Ch.7 EnvironmentObject section](https://forums.kodeco.com/t/error-in-ch-7-environmentobject-section/149249)

<div class="topic-metadata">

**Author:** [@josie\_99](https://forums.kodeco.com/u/josie_99)\
**Replies:** 2\
**Last updated:** [October 5, 2021, 1:33am UTC](https://forums.kodeco.com/t/error-in-ch-7-environmentobject-section/149249 "2021-10-05T01:33:02Z")

</div>

Does anyone else get an error when adding this line to the done buttons ‘action closure’? history.addDoneExercise(Exercise.exercises\[index\].exerciseName) Am I putting it in the right spot?

---

## [Question about loading videos](https://forums.kodeco.com/t/question-about-loading-videos/141761)

<div class="topic-metadata">

**Author:** [@pdenlinger](https://forums.kodeco.com/u/pdenlinger)\
**Replies:** 3\
**Last updated:** [June 19, 2021, 2:23am UTC](https://forums.kodeco.com/t/question-about-loading-videos/141761 "2021-06-19T02:23:10Z")

</div>

I have been working my way through your book; it is very good and clear, thank you! I am not sure if this is a book errata, but I have imported the exercise videos in a Videos folder into the Project Navigator, but in S…

---

## [Ch5 Localization section](https://forums.kodeco.com/t/ch5-localization-section/148753)

<div class="topic-metadata">

**Author:** [@og1](https://forums.kodeco.com/u/og1)\
**Replies:** 3\
**Last updated:** [September 26, 2021, 9:57pm UTC](https://forums.kodeco.com/t/ch5-localization-section/148753 "2021-09-26T21:57:41Z")

</div>

Hi, would it be possible to have an updated version of this section with the latest tech for i18n / l10n in Xcode13 and iOS15 ? It appears to me that the workflow described in this chapter is not in line with the new tec…

---

## [SwiftUI - Prevent reloading entire list when a new row is added](https://forums.kodeco.com/t/swiftui-prevent-reloading-entire-list-when-a-new-row-is-added/148097)

<div class="topic-metadata">

**Author:** [@mfilipowicz](https://forums.kodeco.com/u/mfilipowicz)\
**Replies:** 1\
**Last updated:** [September 17, 2021, 5:12am UTC](https://forums.kodeco.com/t/swiftui-prevent-reloading-entire-list-when-a-new-row-is-added/148097 "2021-09-17T05:12:33Z")

</div>

Hi all, I’m just getting started with SwiftUI. I’ve got a List view wrapped in a navigation view, that displays a row for each item in a @State array, and a navigation bar item that displays another view when pressed. T…

---

## [IOS Data and Networking equivalent in RW Book?](https://forums.kodeco.com/t/ios-data-and-networking-equivalent-in-rw-book/147349)

<div class="topic-metadata">

**Author:** [@brunomj1997](https://forums.kodeco.com/u/brunomj1997)\
**Replies:** 3\
**Last updated:** [September 3, 2021, 4:50am UTC](https://forums.kodeco.com/t/ios-data-and-networking-equivalent-in-rw-book/147349 "2021-09-03T04:50:26Z")

</div>

I was wondering in which books (if there are) I could learn the topics discussed in the learning path section IOS Data & Networking. Im also wondering which book includes the topic of Networking with URLSession and which…

---

## [Unable to locate/download HIITFit in starter Folder for Ch. 2](https://forums.kodeco.com/t/unable-to-locate-download-hiitfit-in-starter-folder-for-ch-2/146694)

<div class="topic-metadata">

**Author:** [@floridajim](https://forums.kodeco.com/u/floridajim)\
**Replies:** 2\
**Last updated:** [August 23, 2021, 4:31pm UTC](https://forums.kodeco.com/t/unable-to-locate-download-hiitfit-in-starter-folder-for-ch-2/146694 "2021-08-23T16:31:39Z")

</div>

I got stuck on Page 70 of SwiftUI Apprentice book. Please help me to find the starter folder mentioned on that page (70). I am unable to locate HIITFit/HIITFit.xcodeproj I browsed to: and figured that I needed t…

---

## [Hi,is M1 mac OK for this book?](https://forums.kodeco.com/t/hi-is-m1-mac-ok-for-this-book/145899)

<div class="topic-metadata">

**Author:** [@sheffield](https://forums.kodeco.com/u/sheffield)\
**Replies:** 2\
**Last updated:** [August 10, 2021, 11:16am UTC](https://forums.kodeco.com/t/hi-is-m1-mac-ok-for-this-book/145899 "2021-08-10T11:16:40Z")

</div>

Hi guys,i saw "A Mac computer with an Intel or ARM processor. Any Mac that you’ve bought in the last few years will do, even a Mac mini or MacBook Air."is at the “What you need” section of this book,but what i got is a 2…

---

## [FileManager.documentURL is not recognized by Xcode](https://forums.kodeco.com/t/filemanager-documenturl-is-not-recognized-by-xcode/144672)

<div class="topic-metadata">

**Author:** [@charliemarechal](https://forums.kodeco.com/u/charliemarechal)\
**Replies:** 1\
**Last updated:** [July 21, 2021, 10:48pm UTC](https://forums.kodeco.com/t/filemanager-documenturl-is-not-recognized-by-xcode/144672 "2021-07-21T22:48:25Z")

</div>

Hello ! I am learning through the Book SwiftUI apprentice, and I’m currently stuck at the JSON part. While I’m copy-pasting the code that’s in the book, I’m getting this error. Can you help me? I’m trying to find what…

---

## [Excellent Intro to SwiftUI, but RWFreeView is Too Specific](https://forums.kodeco.com/t/excellent-intro-to-swiftui-but-rwfreeview-is-too-specific/143941)

<div class="topic-metadata">

**Author:** [@mazen\_kilani](https://forums.kodeco.com/u/mazen_kilani)\
**Replies:** 1\
**Last updated:** [July 10, 2021, 1:40am UTC](https://forums.kodeco.com/t/excellent-intro-to-swiftui-but-rwfreeview-is-too-specific/143941 "2021-07-10T01:40:11Z")

</div>

I thoroughly enjoyed the SwiftUI Apprentice eBook and completed every page in both HIITFit and Cards (coding, not copy/pasting). Both apps were wonderful to code and learn from. When I got to RWFreeView, I paused. Natur…

---

## [Is there an epub available?](https://forums.kodeco.com/t/is-there-an-epub-available/142346)

<div class="topic-metadata">

**Author:** [@ghostfaceace](https://forums.kodeco.com/u/ghostfaceace)\
**Replies:** 5\
**Last updated:** [July 7, 2021, 1:43pm UTC](https://forums.kodeco.com/t/is-there-an-epub-available/142346 "2021-07-07T13:43:21Z")

</div>

Hello, I am reading through the SwiftUI Apprentice book on my browser but would like to know is there an epub version?

---

## [Does this book replace SwiftUI by tutorials?](https://forums.kodeco.com/t/does-this-book-replace-swiftui-by-tutorials/143707)

<div class="topic-metadata">

**Author:** [@iosdevereaux](https://forums.kodeco.com/u/iosdevereaux)\
**Replies:** 1\
**Last updated:** [July 6, 2021, 10:46pm UTC](https://forums.kodeco.com/t/does-this-book-replace-swiftui-by-tutorials/143707 "2021-07-06T22:46:05Z")

</div>

Hi, Does this book replace SwiftUI by tutorials or is the idea to do this one first and SwiftUI by tutorials goes deeper into the framework? Thanks, Nick

---

## [Photos Selection Inconsistent](https://forums.kodeco.com/t/photos-selection-inconsistent/143630)

<div class="topic-metadata">

**Author:** [@mazen\_kilani](https://forums.kodeco.com/u/mazen_kilani)\
**Replies:** 1\
**Last updated:** [July 6, 2021, 8:05am UTC](https://forums.kodeco.com/t/photos-selection-inconsistent/143630 "2021-07-06T08:05:44Z")

</div>

When I select photos, the behaviour is inconsistent: 1 photo selected, nothing appears on the card. 2 photos selected, 1 appears and sometimes none, \>2 photos selected, some appear stacked on top of each other. The pick…

---

## [Materials zip file for SwiftUI Apprentice on GitHub broken](https://forums.kodeco.com/t/materials-zip-file-for-swiftui-apprentice-on-github-broken/143284)

<div class="topic-metadata">

**Author:** [@mctoons](https://forums.kodeco.com/u/mctoons)\
**Replies:** 1\
**Last updated:** [July 1, 2021, 1:16am UTC](https://forums.kodeco.com/t/materials-zip-file-for-swiftui-apprentice-on-github-broken/143284 "2021-07-01T01:16:09Z")

</div>

I tried downloading the zip file for the materials for this book a couple times and both times I got errors that the decompress operation failed. Using GitHub Desktop works fine.

---

## [Chapter 7 Challenge - dollar sign vs no dollar sign](https://forums.kodeco.com/t/chapter-7-challenge-dollar-sign-vs-no-dollar-sign/142959)

<div class="topic-metadata">

**Author:** [@komocode](https://forums.kodeco.com/u/komocode)\
**Replies:** 2\
**Last updated:** [June 26, 2021, 12:48am UTC](https://forums.kodeco.com/t/chapter-7-challenge-dollar-sign-vs-no-dollar-sign/142959 "2021-06-26T00:48:29Z")

</div>

Why is WelcomeView passed in the history variable without a dollar sign but ExerciseView needs the dollar sign? Is it because ExerciseView is modifying the data while WelcomeView isn’t? struct ContentView: View { @Sta…

---

## [Chapter 3: HeaderView Preview needs dark \`background\`](https://forums.kodeco.com/t/chapter-3-headerview-preview-needs-dark-background/142447)

<div class="topic-metadata">

**Author:** [@fdorado985](https://forums.kodeco.com/u/fdorado985)\
**Replies:** 3\
**Last updated:** [June 20, 2021, 3:19am UTC](https://forums.kodeco.com/t/chapter-3-headerview-preview-needs-dark-background/142447 "2021-06-20T03:19:58Z")

</div>

Hi team!, First of all amazing work with the book really didactic, I just have an small concern, such I mentioned on the title I’m on Chapter 3: Working with Previews, just on this part… Set Color Scheme to Dark and D…

[Previous page](https://forums.kodeco.com/c/books/swiftui-apprentice/79.md)
