The problem is in this string:
!self.isAnimating ? 1 - CGFloat(index) / 4 : 0.1 + CGFloat(index) / 5
If you change it to:
!self.isAnimating ? CGFloat(1.0) - CGFloat(index) / 4 : CGFloat(0.1) + CGFloat(index) / 5
this bug will disappear. Compiler of XCode 13 can't resolve a type for some reason.