What should index be? Try .remove(currentIndex)!