<commit_before># PGChoiceViewController

### Description

A subclass of UITableViewController that presents a simple UITableView with cells based on the passed items.
If a cell is tapped by the user, a handler is fired which takes the chosen item as its argument.
This view controller is very usefull for building settings screens like in the iPhone settings.
See test project and screenshots for examples.

### Instalation

Copy and paste the file PGChoiceViewController.swift to your project.

### Example Usage

<iframe src="http://gfycat.com/ifr/UncomfortableDeterminedHypacrosaurus" frameborder="0" scrolling="no" width="616" height="1144" style="-webkit-backface-visibility: hidden;-webkit-transform: scale(1);" ></iframe>

See the example project or example code below.

```
enum SortBy: String, CustomStringConvertible {

    case Date, Priority, Deadline, Title, Progress

    var description: String {
        return self.rawValue
    }
}
<commit_msg>Second try on gif<commit_after># PGChoiceViewController

### Description

A subclass of UITableViewController that presents a simple UITableView with cells based on the passed items.
If a cell is tapped by the user, a handler is fired which takes the chosen item as its argument.
This view controller is very usefull for building settings screens like in the iPhone settings.
See test project and screenshots for examples.

### Instalation

Copy and paste the file PGChoiceViewController.swift to your project.

### Example Usage

![](http://i.imgur.com/JWma37Z.gifv)

See the example project or example code below.

```
enum SortBy: String, CustomStringConvertible {

    case Date, Priority, Deadline, Title, Progress

    var description: String {
        return self.rawValue
    }
}

{'fraction_non_alphanumeric': 0.07089765580331618, 'fraction_numerical': 0.006289308176100629, 'mean_word_length': 4.537974683544304, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6010045', 'n_tokens_mistral': 489, 'n_tokens_neox': 454, 'n_words': 206}