Chapter 8 animation indices is a get only property

Following along in chapter 8. Once we’re going through the interpolation of keyframes we add this part to the update function in renderer.swift

let keyFramePairs = translations.indices.dropFirst().map {
  (previous: translations[$0 - 1], next: translations[$0])

but Xcode complains indices is a get only property so we can’t mutate it.
Is this an Xcode 10 issue?

Just saw its dropFirst not popFirst. Oops

1 Like

@bababoega Really glad you managed to sort it out! :]