<commit_before># Swift Tip Calculator
Because sometimes a TODO list is too hard as a first app, here's a tip calculator!

## What is this

![animated gif demo of calculating a tip for $42.50](preview.gif)

This is an implementation of the Swift tip calculator built by following this wonderful [tutorial video](http://vimeo.com/102084767) published by CodePath.

## What's different

- There is one place where this app's implementation of [`ViewController.swift`] diverges from the code featured in the video. At [21:45](http://vimeo.com/102084767#t=21m45s) an internal method, `bridgeToObjectiveC` is used. I use `as NSString` instead.
        var billAmount = (billField.text as NSString).doubleValue

- A settings modal has been added. It allows the user to set a default tip.

## License

MIT
<commit_msg>Updating readme to meet submission requirements<commit_after># Swift Tip Calculator
Because sometimes a TODO list is too hard as a first app, here's a tip calculator!

## What is this

![animated gif demo of calculating a tip for $42.50](preview.gif)

This is an implementation of the Swift tip calculator built by following this wonderful [tutorial video](http://vimeo.com/102084767) published by CodePath.

Time spent: 3 hours

Completed stories:

 * [x] Required: Calculates an [accurate](https://www.youtube.com/watch?v=HrzhqXGcm68) tip based on user input
 * [x] Required: A settings button displays information about the app
 * [x] Optional: User can set a default tip value from settings

## What's different

- There is one place where this app's implementation of [`ViewController.swift`] diverges from the code featured in the video. At [21:45](http://vimeo.com/102084767#t=21m45s) an internal method, `bridgeToObjectiveC` is used. I use `as NSString` instead.
        var billAmount = (billField.text as NSString).doubleValue

- A settings modal has been added. It allows the user to set a default tip.

## Credit
- GIF created with [LiceCap](http://www.cockos.com/licecap/).
- [Tutorial video](http://vimeo.com/102084767) 

## License

MIT



{'fraction_non_alphanumeric': 0.08963178294573644, 'fraction_numerical': 0.03488372093023256, 'mean_word_length': 4.4057591623036645, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, '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': '6213489', 'n_tokens_mistral': 669, 'n_tokens_neox': 594, 'n_words': 261}