Implement swipe to select in UITableViewContoller
You are given a list of words to display. Your client wants to be able to select mutiple words as he moves his finger down the list. This project has a few classes available for you to start with:
-
MasterViewController: to display main list of words. This is where the guesture will shine.
-
DetailViewController: to display detail of a word (not implemented).
-
TableViewCell: custom cell class
-
UIStoryboard+Addtion: to provide convenient method to access storyboard items
-
WordSource: source of words
Feel free to alter them as you see fit.
-
Selected words will be highlighted with the left-most image: a filled circle indicates selection; empty circle otherwise.
-
Improve the experience of tapping the circle to select.
-
Enable swipe to select/deselect. Cells in the path of swipe guesture should toggle their states.
-
Log selected words when 'OK' is pressed.
-
A simple detail view is needed.
-
Be able to shuffle words, i.e. randomly amend the order of words.
-
Bonus #1: Enable search, in a way you think provides good user experience.
-
Bonus #2: Split the list into two lists which can be viewed by swipping horizontally, e.g. List 1 contains words with initials A-M and List 2 N-Z.
-
Super Bonus #1: Display a text input unit under the word so that a user can type text of any length (e.g. an example sentence) into it. Such text will be displayed in both main & detail view.
-
Super Bonus #2: Write the whole project in Swift 3.0+.