{"id":17133286,"url":"https://github.com/gilbox/ios-tip-calculator","last_synced_at":"2025-03-24T05:43:20.832Z","repository":{"id":78533452,"uuid":"56809899","full_name":"gilbox/ios-tip-calculator","owner":"gilbox","description":"Intro to iOS project","archived":false,"fork":false,"pushed_at":"2016-07-26T03:29:41.000Z","size":85,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T11:30:41.643Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gilbox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-21T22:40:37.000Z","updated_at":"2016-04-21T22:50:57.000Z","dependencies_parsed_at":"2023-02-28T11:16:53.673Z","dependency_job_id":null,"html_url":"https://github.com/gilbox/ios-tip-calculator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilbox%2Fios-tip-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilbox%2Fios-tip-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilbox%2Fios-tip-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilbox%2Fios-tip-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gilbox","download_url":"https://codeload.github.com/gilbox/ios-tip-calculator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245217791,"owners_count":20579297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T19:41:50.253Z","updated_at":"2025-03-24T05:43:20.809Z","avatar_url":"https://github.com/gilbox.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pre-work - TipYall\n\nTipYall is a tip calculator application for iOS.\n\nSubmitted by: Gil Birman\n\nTime spent: ??\n\n## User Stories\n\nThe following **required** functionality is complete:\n\n* [X] User can enter a bill amount, choose a tip percentage, and see the tip and total values.\n* [X] Settings page to change the default tip percentage.\n\nThe following **optional** features are implemented:\n* [X] UI animations (in the `¯\\_(ツ)_/¯` game)\n* [X] Remembering the bill amount across app restarts (if \u003c10mins)\n* [X] Using locale-specific currency and currency thousands separators.\n* [X] Making sure the keyboard is always visible and the bill amount is always the first responder. This way the user doesn't have to tap anywhere to use this app. Just launch the app and start typing.\n* [X] UI Polish\n\nThe following **additional** features are implemented:\n\n* Add a `¯\\_(ツ)_/¯` button which opens the tipping game\n* Tipping game walks user through series of questions and calculates final tip between low and high settings\nusing weighted average based on game score\n\n## Video Walkthrough \n\nHere's a walkthrough of implemented user stories:\n\n\u003cimg src='http://i.imgur.com/674ZJMC.gif' title='Video Walkthrough' width='' alt='Video Walkthrough' /\u003e\n\nGIF created with [LiceCap](http://www.cockos.com/licecap/).\n\n## Notes\n\n- The code is a lot more verbose than I am used to when writing JavaScript.\nPart of this is probably because I don't understand a lot of best-practices.\n\n- I put commonly-used functions and constants in `common.swift`. Coming from the JavaScript\nmodulified world I hate using globals but am not sure the best way to do this sort of thing\nin Swift.\n\n- I'm reading and writing to and from `NSUserDefaults` all the time to avoid any data\nsync problems. Is there any problem with doing this?\n\n- All the switch statements are bothering me. I almost never use them in JS. Hopefully there's a sleeker way.\n\n- When and how is the best way to unwrap optionals?\n\n## License\n\n    Copyright 2016 Gil Birman\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n        http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilbox%2Fios-tip-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgilbox%2Fios-tip-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilbox%2Fios-tip-calculator/lists"}