Using delegation for swipe.