In Chapter 15 in the Updating WaterView section, there is a reference to update the Task
block in logWater(quantity:)
. From the info in the section it should be clear that it is the one in the WaverView.swift
. I personally found it confusing as there are two methods with the same name, one private in WaverView.swift
and another one in HealthStore.swift
. The update should be done in the private one in WaverView.swift
. Perhaps clarifying this in the text would help other readers.
Thanks for reporting this, you should probably post this on the book’s errata topic:
This is monitored by the book authors.
I updated the text to specify it’s still wet WaterView file.
1 Like