As an initial point of topic, there seem to be a slew of typos inside the pre-release version of the book. One typo can be found within the code on page 181 Chapter 9: Property Animators.
Note the function for normalise(weight:) which should state normalize.
Same for the variable normalisedVelocity which should be normalizedVelocity.