# SwiftUI by Tutorials

**URL:** https://forums.kodeco.com/c/books/swiftui-by-tutorials/56.md

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

---

## [About the SwiftUI by Tutorials category](https://forums.kodeco.com/t/about-the-swiftui-by-tutorials-category/79650)

<div class="topic-metadata">

**Author:** [@rwenderlich](https://forums.kodeco.com/u/rwenderlich)\
**Replies:** 0

</div>

This is the official forum for our book, SwiftUI by Tutorials, available here: https://store.raywenderlich.com/products/swiftui-by-tutorials

---

## [About advanced SwiftUI](https://forums.kodeco.com/t/about-advanced-swiftui/118207)

<div class="topic-metadata">

**Author:** [@yangwulong1978](https://forums.kodeco.com/u/yangwulong1978)\
**Replies:** 4\
**Last updated:** [January 5, 2026, 9:07am UTC](https://forums.kodeco.com/t/about-advanced-swiftui/118207 "2026-01-05T09:07:55Z")

</div>

hi, I just read your newsletter, this book will changed to "advanced SwiftUI " my question is what is timeline we expect this happen? and what content changes will happen?

---

## [Is there going to be an update for this book?](https://forums.kodeco.com/t/is-there-going-to-be-an-update-for-this-book/213688)

<div class="topic-metadata">

**Author:** [@ldgoyes](https://forums.kodeco.com/u/ldgoyes)\
**Replies:** 3\
**Last updated:** [November 24, 2025, 12:54pm UTC](https://forums.kodeco.com/t/is-there-going-to-be-an-update-for-this-book/213688 "2025-11-24T12:54:57Z")

</div>

Hi, everyone. I really like Kodeco’s material, since I believe it’s very clear and not boring. Last year, I bought this book expecting an update. However, it’s almost 2026, we have iOS 26 and the latest version was writ…

---

## [Chapter 21: Using property wrappers](https://forums.kodeco.com/t/chapter-21-using-property-wrappers/206184)

<div class="topic-metadata">

**Author:** [@tchelyzt](https://forums.kodeco.com/u/tchelyzt)\
**Replies:** 1\
**Last updated:** [July 9, 2025, 8:12am UTC](https://forums.kodeco.com/t/chapter-21-using-property-wrappers/206184 "2025-07-09T08:12:57Z")

</div>

Hi, In chapter 21 you say: SwiftUI uses property wrappers extensively to let us assign extra functionality to our variables, structs and classes. I learned to my cost that SwiftUI and property wrappers have unexpect…

---

## [Nuance when updating an element in a listing of observed array (Chaps 9 & 14)](https://forums.kodeco.com/t/nuance-when-updating-an-element-in-a-listing-of-observed-array-chaps-9-14/208780)

<div class="topic-metadata">

**Author:** [@tchelyzt](https://forums.kodeco.com/u/tchelyzt)\
**Replies:** 2\
**Last updated:** [January 14, 2025, 5:58pm UTC](https://forums.kodeco.com/t/nuance-when-updating-an-element-in-a-listing-of-observed-array-chaps-9-14/208780 "2025-01-14T17:58:56Z")

</div>

In chapter 9 subsection Making an Object Observable you say: The protocol defines one objectWillChange property only, which synthesizes automatically. That means you aren’t required to implement it — the compiler will …

---

## [TimelineView not updating the flights in chapter 15](https://forums.kodeco.com/t/timelineview-not-updating-the-flights-in-chapter-15/164452)

<div class="topic-metadata">

**Author:** [@snackdog](https://forums.kodeco.com/u/snackdog)\
**Replies:** 5\
**Last updated:** [July 16, 2024, 9:01am UTC](https://forums.kodeco.com/t/timelineview-not-updating-the-flights-in-chapter-15/164452 "2024-07-16T09:01:04Z")

</div>

I think the TimelineView in chapter 15 is not working quite right. It’s not updating the flight list. Maybe we have to use onChange and monitor the context.date and do some kind of load of the flights data the way refres…

---

## [Chapter 13 Strange Navigation Title Behavior](https://forums.kodeco.com/t/chapter-13-strange-navigation-title-behavior/149143)

<div class="topic-metadata">

**Author:** [@gaspare92](https://forums.kodeco.com/u/gaspare92)\
**Replies:** 5\
**Last updated:** [July 10, 2024, 3:29am UTC](https://forums.kodeco.com/t/chapter-13-strange-navigation-title-behavior/149143 "2024-07-10T03:29:52Z")

</div>

I just completed the chapter 13 of the book. When I run the app, the navigation title have a strange behavior. Sometimes it gets stuck in the top bar and other times in large title mode. Can anyone know how to solve?. I …

---

## [RE: Your First iOS & SwiftUI App: An App from Scratch, Episode 17: Intro to App Architecture | Kodeco](https://forums.kodeco.com/t/re-your-first-ios-swiftui-app-an-app-from-scratch-episode-17-intro-to-app-architecture-kodeco/200624)

<div class="topic-metadata">

**Author:** [@elearner](https://forums.kodeco.com/u/elearner)\
**Replies:** 3\
**Last updated:** [April 11, 2024, 1:48am UTC](https://forums.kodeco.com/t/re-your-first-ios-swiftui-app-an-app-from-scratch-episode-17-intro-to-app-architecture-kodeco/200624 "2024-04-11T01:48:50Z")

</div>

In earlier versions of this tutorial “Your First iOS and SwiftUI App: An App From Scratch” it shows that the view modifier, “Kerning”, returns a Text View. So, it has to be placed, in your code before any View Modifiers …

---

## [NavigationStack and NavigationPath](https://forums.kodeco.com/t/navigationstack-and-navigationpath/201770)

<div class="topic-metadata">

**Author:** [@gaspare92](https://forums.kodeco.com/u/gaspare92)\
**Replies:** 0\
**Last updated:** [January 23, 2024, 11:49am UTC](https://forums.kodeco.com/t/navigationstack-and-navigationpath/201770 "2024-01-23T11:49:22Z")

</div>

Hello, Im on page 445 of the pdf version of the book. I followed the instruction to add a navigation path but when I click the last viewed flight, the navigation get stuck on the flights list. The problem occur in my pro…

---

## [Chapter 9: State & Data Flow – Part II](https://forums.kodeco.com/t/chapter-9-state-data-flow-part-ii/201096)

<div class="topic-metadata">

**Author:** [@kfremgen97](https://forums.kodeco.com/u/kfremgen97)\
**Replies:** 0\
**Last updated:** [December 30, 2023, 6:22pm UTC](https://forums.kodeco.com/t/chapter-9-state-data-flow-part-ii/201096 "2023-12-30T18:22:58Z")

</div>

After going through Chapter 9 and looking at final code I have a question regarding the KuchiApp.swift file. The final project has KuchiApp.swift as: @main struct KuchiApp: App { let userManager = UserManager() let…

---

## [SwiftUI \*.xcodeproj download](https://forums.kodeco.com/t/swiftui-xcodeproj-download/200379)

<div class="topic-metadata">

**Author:** [@sheva](https://forums.kodeco.com/u/sheva)\
**Replies:** 8\
**Last updated:** [December 12, 2023, 12:06am UTC](https://forums.kodeco.com/t/swiftui-xcodeproj-download/200379 "2023-12-12T00:06:43Z")

</div>

Where i can download the \*.xcodeproj for every chapter of the book SwiftUI by Tutorials? Many thanks

---

## [Errata for SwiftUI by Tutorials 5th Edition](https://forums.kodeco.com/t/errata-for-swiftui-by-tutorials-5th-edition/188283)

<div class="topic-metadata">

**Author:** [@jellodiil](https://forums.kodeco.com/u/jellodiil)\
**Replies:** 6\
**Last updated:** [August 22, 2023, 2:53pm UTC](https://forums.kodeco.com/t/errata-for-swiftui-by-tutorials-5th-edition/188283 "2023-08-22T14:53:26Z")

</div>

Creating this topic to catch any typos and bugs in the 5th Edition of SwiftUI by Tutorials.

---

## [Trying to figure out view transitions](https://forums.kodeco.com/t/trying-to-figure-out-view-transitions/189132)

<div class="topic-metadata">

**Author:** [@sundraw](https://forums.kodeco.com/u/sundraw)\
**Replies:** 0\
**Last updated:** [July 8, 2023, 7:01am UTC](https://forums.kodeco.com/t/trying-to-figure-out-view-transitions/189132 "2023-07-08T07:01:18Z")

</div>

I’m in Chapter 20 and trying to follow the logic using a very simple example. Here’s the code: struct ContentView: View { @State var change = false var body: some View { Rectangle() .fo…

---

## [Xcode Push Notification](https://forums.kodeco.com/t/xcode-push-notification/183423)

<div class="topic-metadata">

**Author:** [@ultrapyromane](https://forums.kodeco.com/u/ultrapyromane)\
**Replies:** 5\
**Last updated:** [June 25, 2023, 11:46pm UTC](https://forums.kodeco.com/t/xcode-push-notification/183423 "2023-06-25T23:46:11Z")

</div>

Hello, I followed this tutorial: Unfortunately, I have not generated any tokens, what am I doing wrong?

---

## [Typos in the book](https://forums.kodeco.com/t/typos-in-the-book/188505)

<div class="topic-metadata">

**Author:** [@hashem](https://forums.kodeco.com/u/hashem)\
**Replies:** 1\
**Last updated:** [June 20, 2023, 7:05pm UTC](https://forums.kodeco.com/t/typos-in-the-book/188505 "2023-06-20T19:05:43Z")

</div>

Hi Good, I have read the book and collected some typos. screenshots attached. please review. As I’m restricted to upload images, I have added a link to review: Thanks

---

## [Build error in Chapter 2, First Project](https://forums.kodeco.com/t/build-error-in-chapter-2-first-project/185065)

<div class="topic-metadata">

**Author:** [@brettb](https://forums.kodeco.com/u/brettb)\
**Replies:** 2\
**Last updated:** [March 14, 2023, 3:42am UTC](https://forums.kodeco.com/t/build-error-in-chapter-2-first-project/185065 "2023-03-14T03:42:00Z")

</div>

I just finished SwiftUI Apprentice (well at least up to chapter 26 where the widget code was too outdated) and decided to move on to this book, Swift UI by Tutorials. Opened the materials, Chapter 2, Starter project and…

---

## [Errata for SwiftUI by Tutorials 4th Edition](https://forums.kodeco.com/t/errata-for-swiftui-by-tutorials-4th-edition/156532)

<div class="topic-metadata">

**Author:** [@jellodiil](https://forums.kodeco.com/u/jellodiil)\
**Replies:** 5\
**Last updated:** [March 2, 2023, 9:58pm UTC](https://forums.kodeco.com/t/errata-for-swiftui-by-tutorials-4th-edition/156532 "2023-03-02T21:58:52Z")

</div>

Creating this topic to catch any typos and bugs in the 4th Edition of SwiftUI by Tutorials.

---

## [Chapter 3 - Efficient data structure](https://forums.kodeco.com/t/chapter-3-efficient-data-structure/183937)

<div class="topic-metadata">

**Author:** [@xiantao](https://forums.kodeco.com/u/xiantao)\
**Replies:** 1\
**Last updated:** [February 14, 2023, 12:46am UTC](https://forums.kodeco.com/t/chapter-3-efficient-data-structure/183937 "2023-02-14T00:46:31Z")

</div>

Hi, Thanks for writing this good book! I have a question about the efficient data structure mentioned in in page 59 Chapter 3: SwiftUI encourages you to create small reusable views, then customize them with modifiers…

---

## [How to disable a Button from a repeat selection until its animation completes?](https://forums.kodeco.com/t/how-to-disable-a-button-from-a-repeat-selection-until-its-animation-completes/183813)

<div class="topic-metadata">

**Author:** [@tchelyzt](https://forums.kodeco.com/u/tchelyzt)\
**Replies:** 4\
**Last updated:** [February 12, 2023, 6:40pm UTC](https://forums.kodeco.com/t/how-to-disable-a-button-from-a-repeat-selection-until-its-animation-completes/183813 "2023-02-12T18:40:38Z")

</div>

I’ve produced a game using SwiftUI for the interface. It works as intended; i.e. play requires some reflection and then an input using buttons; only legal buttons are enabled so illegal input should be impossible. An ani…

---

## [Chapter 2 - Command-click Text in Vstack](https://forums.kodeco.com/t/chapter-2-command-click-text-in-vstack/122674)

<div class="topic-metadata">

**Author:** [@u3qu3oxyvflx](https://forums.kodeco.com/u/u3qu3oxyvflx)\
**Replies:** 4\
**Last updated:** [February 11, 2023, 1:56pm UTC](https://forums.kodeco.com/t/chapter-2-command-click-text-in-vstack/122674 "2023-02-11T13:56:07Z")

</div>

Command-click the Text view in the canvas, and select Show Swift-UI Inspector…: Then edit the text… When embedded in a VStack (as suggested in Step 1, Cmd-clicking the embedded Text view selects and inspects the enclo…

---

## [Version update for SwiftUI 4.0](https://forums.kodeco.com/t/version-update-for-swiftui-4-0/174694)

<div class="topic-metadata">

**Author:** [@peter.suwara](https://forums.kodeco.com/u/peter.suwara)\
**Replies:** 2\
**Last updated:** [January 20, 2023, 4:22am UTC](https://forums.kodeco.com/t/version-update-for-swiftui-4-0/174694 "2023-01-20T04:22:03Z")

</div>

When we expect the updated version to be released? In particular what would be good are Navigation examples. Many thanks.

---

## [Ch. 10 @AppStorage use/style question](https://forums.kodeco.com/t/ch-10-appstorage-use-style-question/142812)

<div class="topic-metadata">

**Author:** [@fischej](https://forums.kodeco.com/u/fischej)\
**Replies:** 1\
**Last updated:** [December 26, 2022, 10:52pm UTC](https://forums.kodeco.com/t/ch-10-appstorage-use-style-question/142812 "2022-12-26T22:52:43Z")

</div>

My first exposure to @AppStorage, so certainly willing to get schooled on this, but… It strikes me as very poor form to declare and initialize the same variable multiple times in the same app. Kuchi has the following li…

---

## [Capter 6: userManager appear suddenly](https://forums.kodeco.com/t/capter-6-usermanager-appear-suddenly/175729)

<div class="topic-metadata">

**Author:** [@usinuniverse](https://forums.kodeco.com/u/usinuniverse)\
**Replies:** 4\
**Last updated:** [December 21, 2022, 12:22pm UTC](https://forums.kodeco.com/t/capter-6-usermanager-appear-suddenly/175729 "2022-12-21T12:22:21Z")

</div>

While reading the book, it tells me to write code under userManager. But at that point the userManager is nowhere to be found. I read Chapter 6 again just in case. But the userManager doesn’t appear anywhere. Where t…

---

## [@ViewBuilder doesn't seem to be needed on body in chapter 8](https://forums.kodeco.com/t/viewbuilder-doesnt-seem-to-be-needed-on-body-in-chapter-8/161074)

<div class="topic-metadata">

**Author:** [@snackdog](https://forums.kodeco.com/u/snackdog)\
**Replies:** 2\
**Last updated:** [December 20, 2022, 12:12pm UTC](https://forums.kodeco.com/t/viewbuilder-doesnt-seem-to-be-needed-on-body-in-chapter-8/161074 "2022-12-20T12:12:39Z")

</div>

The code seems to work and compile without adding @ViewBuilder to the body property when using the environment to check the vertical size class. Is this no longer necessary?

---

## [Why does this not work](https://forums.kodeco.com/t/why-does-this-not-work/179447)

<div class="topic-metadata">

**Author:** [@tchelyzt](https://forums.kodeco.com/u/tchelyzt)\
**Replies:** 4\
**Last updated:** [November 17, 2022, 1:57pm UTC](https://forums.kodeco.com/t/why-does-this-not-work/179447 "2022-11-17T13:57:37Z")

</div>

I have an app that depends on a model which displays quite different screens depending on current state. Here’s a simple minimum example WHICH WORKS to illustrate the idea. The model is observed via @StateObject and the …

---

## [V.4 Chapter 6: Keyboard and Form Tuning $userManager](https://forums.kodeco.com/t/v-4-chapter-6-keyboard-and-form-tuning-usermanager/173402)

<div class="topic-metadata">

**Author:** [@helmutrs](https://forums.kodeco.com/u/helmutrs)\
**Replies:** 3\
**Last updated:** [November 17, 2022, 11:57am UTC](https://forums.kodeco.com/t/v-4-chapter-6-keyboard-and-form-tuning-usermanager/173402 "2022-11-17T11:57:05Z")

</div>

Hello, On the chapter 6 (page 184) I need to bind the Textfield text with $userManager, which I was never mention before on this chapter or the previous ones. The $userManager (based on the final project) is: @Enviro…

---

## [Chapter 22: Converting an iOS App to macOS](https://forums.kodeco.com/t/chapter-22-converting-an-ios-app-to-macos/171051)

<div class="topic-metadata">

**Author:** [@stefanbk](https://forums.kodeco.com/u/stefanbk)\
**Replies:** 1\
**Last updated:** [August 16, 2022, 7:38am UTC](https://forums.kodeco.com/t/chapter-22-converting-an-ios-app-to-macos/171051 "2022-08-16T07:38:20Z")

</div>

In struct SearchFlights Since .searchable() needs NavigationView, simply modified the text field to work as a searchField: ... @State private var showListOfCities = false @FocusState private var focusedField ... TextF…

---

## [Avoiding the inconvenient immutable model](https://forums.kodeco.com/t/avoiding-the-inconvenient-immutable-model/176151)

<div class="topic-metadata">

**Author:** [@tchelyzt](https://forums.kodeco.com/u/tchelyzt)\
**Replies:** 1\
**Last updated:** [August 13, 2022, 4:12pm UTC](https://forums.kodeco.com/t/avoiding-the-inconvenient-immutable-model/176151 "2022-08-13T16:12:34Z")

</div>

I really like SwiftUI and its use of lightweight structs for Views but every time I start a new project (hobby programming exclusively) I come up against this Wall which is the requirement that my model should be a(n imm…

---

## [Connecting NLP API backend (postman link in Swift), storing messages on Firebase](https://forums.kodeco.com/t/connecting-nlp-api-backend-postman-link-in-swift-storing-messages-on-firebase/175532)

<div class="topic-metadata">

**Author:** [@kyoto96](https://forums.kodeco.com/u/kyoto96)\
**Replies:** 2\
**Last updated:** [July 25, 2022, 7:13pm UTC](https://forums.kodeco.com/t/connecting-nlp-api-backend-postman-link-in-swift-storing-messages-on-firebase/175532 "2022-07-25T19:13:06Z")

</div>

Hello All, I am new to the forum and super new to the Xcode & swift. I am trying to connect my backend with an examplar chat frontend. However, I am totally lost on how to connect my NLP API with postman link. Messages …

---

## [@State not updating when set via .init(\[...\]) parameter](https://forums.kodeco.com/t/state-not-updating-when-set-via-init-parameter/172536)

<div class="topic-metadata">

**Author:** [@ml1](https://forums.kodeco.com/u/ml1)\
**Replies:** 0\
**Last updated:** [June 4, 2022, 3:21pm UTC](https://forums.kodeco.com/t/state-not-updating-when-set-via-init-parameter/172536 "2022-06-04T15:21:53Z")

</div>

Hi, it seems that a @State variable in a View will not update (initialize to the new value) on subsequent calls to the Views .init method. In the example below (tested on macOS) the Text("internal: \\(\_internalNumber)") …

[Next page](https://forums.kodeco.com/c/books/swiftui-by-tutorials/56.md?page=1)
