fix ConstrainViewArray

Hello, Erica,
I think you may have a bug in Swift's version of `ConstrainViewArray` – value of `index` was stuck at `1`.
 
Thanks for the great pack!