Update swipe view to switch views when the active index changes.