# iOS Apprentice

**URL:** https://forums.kodeco.com/c/books/ios-apprentice/7.md?page=4

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

**Page:** 5

---

## [iOS Apprentice 8th ed. co-author here!](https://forums.kodeco.com/t/ios-apprentice-8th-ed-co-author-here/91083)

<div class="topic-metadata">

**Author:** [@accordionguy](https://forums.kodeco.com/u/accordionguy)\
**Replies:** 3\
**Last updated:** [April 5, 2020, 9:46pm UTC](https://forums.kodeco.com/t/ios-apprentice-8th-ed-co-author-here/91083 "2020-04-05T21:46:51Z")

</div>

I’m Joey deVilla, and I wrote sections 1 and 2 of iOS Apprentice, 8th edition! I learned iOS programming from an earlier edition, and it was a dream come true to work on this revision. This is a quick post just to let y…

---

## [Ch 13: After editing an item, the edited row becomes unclickable](https://forums.kodeco.com/t/ch-13-after-editing-an-item-the-edited-row-becomes-unclickable/102552)

<div class="topic-metadata">

**Author:** [@tangobango](https://forums.kodeco.com/u/tangobango)\
**Replies:** 1\
**Last updated:** [April 5, 2020, 9:45pm UTC](https://forums.kodeco.com/t/ch-13-after-editing-an-item-the-edited-row-becomes-unclickable/102552 "2020-04-05T21:45:21Z")

</div>

I finally got the extensions to work by copying them directly into the project, but now there is a further problem: If I click on a row to open the edit item screen, once I return to the checklist screen that row become…

---

## [Chapter 13. After delete the last row, when try to edit item, the app will crash](https://forums.kodeco.com/t/chapter-13-after-delete-the-last-row-when-try-to-edit-item-the-app-will-crash/101963)

<div class="topic-metadata">

**Author:** [@ys\_xs](https://forums.kodeco.com/u/ys_xs)\
**Replies:** 1\
**Last updated:** [April 5, 2020, 9:44pm UTC](https://forums.kodeco.com/t/chapter-13-after-delete-the-last-row-when-try-to-edit-item-the-app-will-crash/101963 "2020-04-05T21:44:09Z")

</div>

I believe this is associated with the ’ forEach part’ in the ChecklistView but i cannot find why and how to fix it

---

## [Chapter 13: Trying to solve the Binding-Problem without Extensions](https://forums.kodeco.com/t/chapter-13-trying-to-solve-the-binding-problem-without-extensions/98944)

<div class="topic-metadata">

**Author:** [@ftc](https://forums.kodeco.com/u/ftc)\
**Replies:** 3\
**Last updated:** [April 5, 2020, 3:40am UTC](https://forums.kodeco.com/t/chapter-13-trying-to-solve-the-binding-problem-without-extensions/98944 "2020-04-05T03:40:05Z")

</div>

What do you think about this solution instead of complicated Extensions: ForEach(checklist.items.indices, id: \\.self) { index in RowView(checklistItem: self.$checklist.items\[index\]) }

---

## [Can't toggle checklistItem from RowView](https://forums.kodeco.com/t/cant-toggle-checklistitem-from-rowview/101740)

<div class="topic-metadata">

**Author:** [@redjman](https://forums.kodeco.com/u/redjman)\
**Replies:** 1\
**Last updated:** [April 5, 2020, 2:27am UTC](https://forums.kodeco.com/t/cant-toggle-checklistitem-from-rowview/101740 "2020-04-05T02:27:28Z")

</div>

I wanted to add the functionality back in where you could check/uncheck items by tapping the checkbox, rather than having to open the edit view and use the toggle. So I added this line to RowView: self.$checklistItem.i…

---

## [Chapter 13 , any explanation on the Extension?](https://forums.kodeco.com/t/chapter-13-any-explanation-on-the-extension/100663)

<div class="topic-metadata">

**Author:** [@governorx](https://forums.kodeco.com/u/governorx)\
**Replies:** 1\
**Last updated:** [April 4, 2020, 11:02pm UTC](https://forums.kodeco.com/t/chapter-13-any-explanation-on-the-extension/100663 "2020-04-04T23:02:51Z")

</div>

Hello! So i just finished Chapter 13 and i was wondering, is there any full explanation how the code in the Extensions actually work ? E.g the code written in there, some breakdown on what does what and why it is made t…

---

## [Missing: you’ll use local notifications to present the user with timely reminders](https://forums.kodeco.com/t/missing-you-ll-use-local-notifications-to-present-the-user-with-timely-reminders/100598)

<div class="topic-metadata">

**Author:** [@jcpazos65](https://forums.kodeco.com/u/jcpazos65)\
**Replies:** 2\
**Last updated:** [April 3, 2020, 4:21pm UTC](https://forums.kodeco.com/t/missing-you-ll-use-local-notifications-to-present-the-user-with-timely-reminders/100598 "2020-04-03T16:21:19Z")

</div>

Hi In intro to checklist it says “And finally, you’ll use local notifications to present the user with timely reminders and important messages that appear at the top of the screen.” But I can not find these in all Chec…

---

## [My Locations - Labels Aren't Showing on Get My Location Screen](https://forums.kodeco.com/t/my-locations-labels-arent-showing-on-get-my-location-screen/101335)

<div class="topic-metadata">

**Author:** [@thejackburton](https://forums.kodeco.com/u/thejackburton)\
**Replies:** 2\
**Last updated:** [April 3, 2020, 2:58pm UTC](https://forums.kodeco.com/t/my-locations-labels-arent-showing-on-get-my-location-screen/101335 "2020-04-03T14:58:38Z")

</div>

I have several issues. When running on my iPhone 11 Pro Max, the labels do not show up (Longitude, Latitude, etc.) and when I click on Tag Location, the Cancel and Done button do not appear. The labels on my iPad Mini 4…

---

## [Mylocations Transferring Data](https://forums.kodeco.com/t/mylocations-transferring-data/100549)

<div class="topic-metadata">

**Author:** [@thejackburton](https://forums.kodeco.com/u/thejackburton)\
**Replies:** 2\
**Last updated:** [April 3, 2020, 2:57pm UTC](https://forums.kodeco.com/t/mylocations-transferring-data/100549 "2020-04-03T14:57:05Z")

</div>

Hello, I built MyLocations originally with Swift 2.0. I wanted to check and see how I would migrate the locations that I had gone to and saved in the app. I extracted the xcappdata file and wanted to see how I would put…

---

## [MyLocations: Transferring data from one phone to another and/or backing up to firebase](https://forums.kodeco.com/t/mylocations-transferring-data-from-one-phone-to-another-and-or-backing-up-to-firebase/26327)

<div class="topic-metadata">

**Author:** [@bush](https://forums.kodeco.com/u/bush)\
**Replies:** 5\
**Last updated:** [April 3, 2020, 2:56pm UTC](https://forums.kodeco.com/t/mylocations-transferring-data-from-one-phone-to-another-and-or-backing-up-to-firebase/26327 "2020-04-03T14:56:02Z")

</div>

I created MyLocations, and used it on my old iPhone. I traveled around several states with my dad over the summer and used it to check in to various locations, National Parks, etc… I have since upgraded to a newer iPhone…

---

## [Giving up on Bullseye (UIKit) in version 8.1](https://forums.kodeco.com/t/giving-up-on-bullseye-uikit-in-version-8-1/98572)

<div class="topic-metadata">

**Author:** [@frostbite](https://forums.kodeco.com/u/frostbite)\
**Replies:** 1\
**Last updated:** [April 1, 2020, 5:33am UTC](https://forums.kodeco.com/t/giving-up-on-bullseye-uikit-in-version-8-1/98572 "2020-04-01T05:33:46Z")

</div>

I’ve been working my way through version 8.1 of the ebook. Some thoughts and errata: Section 1, Bullseye with SwiftUI, was very good and at the right level for a beginner. However, the jump to section 2 was big. Really…

---

## [Chapter 44, Landscape. page1237](https://forums.kodeco.com/t/chapter-44-landscape-page1237/97531)

<div class="topic-metadata">

**Author:** [@zoran](https://forums.kodeco.com/u/zoran)\
**Replies:** 2\
**Last updated:** [March 31, 2020, 3:59am UTC](https://forums.kodeco.com/t/chapter-44-landscape-page1237/97531 "2020-03-31T03:59:25Z")

</div>

ok, I’m lost here. what am I doing wrong? everything is working fine, I have typed in the additional viewDidLoad() code as noted (numerous times). I have also cut and pasted from the final code supplied with publication…

---

## [CH 26: Swift Review Correction](https://forums.kodeco.com/t/ch-26-swift-review-correction/96610)

<div class="topic-metadata">

**Author:** [@justinjngan](https://forums.kodeco.com/u/justinjngan)\
**Replies:** 2\
**Last updated:** [March 29, 2020, 9:15pm UTC](https://forums.kodeco.com/t/ch-26-swift-review-correction/96610 "2020-03-29T21:15:59Z")

</div>

In Chapter 26, I believe the example for accessing a dictionary is wrong: “// A dictionary that stores (String, Int) pairs, for example a // list of people’s names and their ages: var ages: Dictionary\<String, Int\> /…

---

## [Chapter 43: Polish the Pop-up...Dynamic Type issue](https://forums.kodeco.com/t/chapter-43-polish-the-pop-up-dynamic-type-issue/95294)

<div class="topic-metadata">

**Author:** [@zoran](https://forums.kodeco.com/u/zoran)\
**Replies:** 2\
**Last updated:** [March 29, 2020, 12:17pm UTC](https://forums.kodeco.com/t/chapter-43-polish-the-pop-up-dynamic-type-issue/95294 "2020-03-29T12:17:25Z")

</div>

I’m not sure if I am misreading something, or going to the wrong area, but I cannot get the “Text Style - Headline” option. I go to DETAIL scene, click on the NAME label, go to the ATTRIBUTES inspector, go to FONT option…

---

## [Ch25: The Final App (Subtle transitions)](https://forums.kodeco.com/t/ch25-the-final-app-subtle-transitions/96513)

<div class="topic-metadata">

**Author:** [@justinjngan](https://forums.kodeco.com/u/justinjngan)\
**Replies:** 2\
**Last updated:** [March 29, 2020, 12:53am UTC](https://forums.kodeco.com/t/ch25-the-final-app-subtle-transitions/96513 "2020-03-29T00:53:22Z")

</div>

Below is a quote from Chapter 25 in the book. Considering the book, and the fact that it was important to include the transition to polish the game because subtle beauty is important for iOS dev, is it really sufficient…

---

## [Chapter 10 p 346, 347 "'checklistItem' is a let constant](https://forums.kodeco.com/t/chapter-10-p-346-347-checklistitem-is-a-let-constant/95824)

<div class="topic-metadata">

**Author:** [@jsbotts73](https://forums.kodeco.com/u/jsbotts73)\
**Replies:** 2\
**Last updated:** [March 28, 2020, 9:48pm UTC](https://forums.kodeco.com/t/chapter-10-p-346-347-checklistitem-is-a-let-constant/95824 "2020-03-28T21:48:07Z")

</div>

.onTapGesture { if checklistItem.isChecked == true //No error in this line { //Error in line below: "cannot assign to …

---

## [Compiler warnings](https://forums.kodeco.com/t/compiler-warnings/103150)

<div class="topic-metadata">

**Author:** [@danking](https://forums.kodeco.com/u/danking)\
**Replies:** 4\
**Last updated:** [March 28, 2020, 8:09pm UTC](https://forums.kodeco.com/t/compiler-warnings/103150 "2020-03-28T20:09:59Z")

</div>

Hi, in Chapter 20; Table Views at “Compiler warnings” it says: “That’s simple enough to fix, right? Simply select the label, select the Add New Constraints icon at the bottom of the Interface Builder window, and add 4 …

---

## [Chapter 4: Text("\\(self.Target)")](https://forums.kodeco.com/t/chapter-4-text-self-target/95027)

<div class="topic-metadata">

**Author:** [@jsbotts73](https://forums.kodeco.com/u/jsbotts73)\
**Replies:** 4\
**Last updated:** [March 28, 2020, 7:39pm UTC](https://forums.kodeco.com/t/chapter-4-text-self-target/95027 "2020-03-28T19:39:22Z")

</div>

In Chapter 4, the line: Text(“(self.Target)”) has an error. The error is "Type of expression is ambiguous without more context. I have not been able to find a solution.

---

## [App Programming Guide for iOS](https://forums.kodeco.com/t/app-programming-guide-for-ios/95595)

<div class="topic-metadata">

**Author:** [@interactivexr](https://forums.kodeco.com/u/interactivexr)\
**Replies:** 2\
**Last updated:** [March 28, 2020, 6:28pm UTC](https://forums.kodeco.com/t/app-programming-guide-for-ios/95595 "2020-03-28T18:28:15Z")

</div>

In Chapter 28: Use Location data is mentioned that there is full list of device capabilities on apple developer website that can be found under App Programming Guide for iOS but it seems that I can’t find this page. Can …

---

## [iOS Apprentice Screen Shots](https://forums.kodeco.com/t/ios-apprentice-screen-shots/93982)

<div class="topic-metadata">

**Author:** [@syktek](https://forums.kodeco.com/u/syktek)\
**Replies:** 1\
**Last updated:** [March 27, 2020, 3:01pm UTC](https://forums.kodeco.com/t/ios-apprentice-screen-shots/93982 "2020-03-27T15:01:38Z")

</div>

Screen Shots have been omitted on pp. 841 and 844

---

## [iOS Apprentice MyLocations](https://forums.kodeco.com/t/ios-apprentice-mylocations/93962)

<div class="topic-metadata">

**Author:** [@syktek](https://forums.kodeco.com/u/syktek)\
**Replies:** 2\
**Last updated:** [March 27, 2020, 2:58pm UTC](https://forums.kodeco.com/t/ios-apprentice-mylocations/93962 "2020-03-27T14:58:04Z")

</div>

When I run the app from p.820 in version 8.1.0 of iOS Apprentice, I get latitudeLabel.text = 0.0 longitudeLabel.text = 0.0 addressLabel.text = “No Address Found” However the CurrentLocationController shows the correc…

---

## [Chapter 17. Improved data model](https://forums.kodeco.com/t/chapter-17-improved-data-model/89197)

<div class="topic-metadata">

**Author:** [@ucelme](https://forums.kodeco.com/u/ucelme)\
**Replies:** 8\
**Last updated:** [March 17, 2020, 3:44pm UTC](https://forums.kodeco.com/t/chapter-17-improved-data-model/89197 "2020-03-17T15:44:02Z")

</div>

Hello. In Xcode 11 I have to separate files AppDelegate.swift and SceneDelegate.swift. In which of them I should put the code explained in this chapter? var window: UIWindow? let dataModel = DataModel() func app…

---

## [Chapter 38 - Search Bar Background](https://forums.kodeco.com/t/chapter-38-search-bar-background/97131)

<div class="topic-metadata">

**Author:** [@mcneils](https://forums.kodeco.com/u/mcneils)\
**Replies:** 3\
**Last updated:** [March 2, 2020, 6:25am UTC](https://forums.kodeco.com/t/chapter-38-search-bar-background/97131 "2020-03-02T06:25:35Z")

</div>

Not sure why, but I think in the new xCode 13, when you use a UISearchBar now, the search bar background isn’t white anymore but is a light grey by default. So when we change the appearance of the UISearchBar it doesn’t …

---

## [Published Errata?](https://forums.kodeco.com/t/published-errata/100118)

<div class="topic-metadata">

**Author:** [@commiepinko](https://forums.kodeco.com/u/commiepinko)\
**Replies:** 2\
**Last updated:** [March 1, 2020, 6:41am UTC](https://forums.kodeco.com/t/published-errata/100118 "2020-03-01T06:41:14Z")

</div>

Is there a complete published errata for iOS Apprentice for Swift 5.1 someplace I’ve failed to find it? It’s time consuming and cumbersome to browse the forum when all I want is a list of corrections to make before I be…

---

## [Chapter 7 - missing part of paragraph?](https://forums.kodeco.com/t/chapter-7-missing-part-of-paragraph/98237)

<div class="topic-metadata">

**Author:** [@kammahha](https://forums.kodeco.com/u/kammahha)\
**Replies:** 3\
**Last updated:** [February 25, 2020, 12:37pm UTC](https://forums.kodeco.com/t/chapter-7-missing-part-of-paragraph/98237 "2020-02-25T12:37:29Z")

</div>

At the top of the page the sentence starts with “Let’s” and never ends.

---

## [New version 8.2 feedback](https://forums.kodeco.com/t/new-version-8-2-feedback/98560)

<div class="topic-metadata">

**Author:** [@danking](https://forums.kodeco.com/u/danking)\
**Replies:** 5\
**Last updated:** [February 24, 2020, 5:01pm UTC](https://forums.kodeco.com/t/new-version-8-2-feedback/98560 "2020-02-24T17:01:27Z")

</div>

Hi, FYI, in the new version 8.2 “Section 4” is missing in the Table of contents… Best regards, Daniel

---

## [Chapter 43 - Polish the Pop-Up Background View Ripple Effect](https://forums.kodeco.com/t/chapter-43-polish-the-pop-up-background-view-ripple-effect/99177)

<div class="topic-metadata">

**Author:** [@mcneils](https://forums.kodeco.com/u/mcneils)\
**Replies:** 1\
**Last updated:** [February 24, 2020, 4:59pm UTC](https://forums.kodeco.com/t/chapter-43-polish-the-pop-up-background-view-ripple-effect/99177 "2020-02-24T16:59:00Z")

</div>

When we dismiss the pop-up detail it fades out with a sort of ripple effect. This looks nice when we animate the pop up to display, but when dismissing it, that seems kind of out place. It would make more sense if the de…

---

## [Chapter 10: Recommended change in next version](https://forums.kodeco.com/t/chapter-10-recommended-change-in-next-version/97573)

<div class="topic-metadata">

**Author:** [@fenianemt](https://forums.kodeco.com/u/fenianemt)\
**Replies:** 1\
**Last updated:** [February 10, 2020, 2:42am UTC](https://forums.kodeco.com/t/chapter-10-recommended-change-in-next-version/97573 "2020-02-10T02:42:36Z")

</div>

The ‘Fixing the “dead zone”’ section of chapter 10, recommends setting the background color to white so that the whole row becomes tappable. That causes major problems on devices that are in dark mode because the backgro…

---

## [Refactor broke everything](https://forums.kodeco.com/t/refactor-broke-everything/91199)

<div class="topic-metadata">

**Author:** [@oaklazza](https://forums.kodeco.com/u/oaklazza)\
**Replies:** 7\
**Last updated:** [February 4, 2020, 7:20pm UTC](https://forums.kodeco.com/t/refactor-broke-everything/91199 "2020-02-04T19:20:47Z")

</div>

Hi, Adding this in case anyone else has had similar issues… Following the instructions in the 8th edition of iOS Apprentice, chapter 11, page 364, I used “refactor” to rename the ContentView to ChecklistView. For some…

---

## [Error on page 70 of book?](https://forums.kodeco.com/t/error-on-page-70-of-book/93479)

<div class="topic-metadata">

**Author:** [@amitsrivastava](https://forums.kodeco.com/u/amitsrivastava)\
**Replies:** 4\
**Last updated:** [February 1, 2020, 4:18pm UTC](https://forums.kodeco.com/t/error-on-page-70-of-book/93479 "2020-02-01T16:18:40Z")

</div>

Hi, On page 70 the author tries to explain the OOPs concepts by writing code Text("Welcome to my first app!") .fontWeight(.black) .color(.green) But this code is giving error - Value of type ‘Text’ has no member ‘colo…

[Previous page](https://forums.kodeco.com/c/books/ios-apprentice/7.md?page=3)

[Next page](https://forums.kodeco.com/c/books/ios-apprentice/7.md?page=5)
