Demo code for swipe view in iOS with swift.