/tipcalculatorswift

Tip Calculator Codepath iOS Bootcamp submission using Swift

Primary LanguageSwiftMIT LicenseMIT

TipCalculator

This is a Tip Calculator application for iOS submitted as the pre-assignment requirement for CodePath.

Time spent: 15

Completed:

  • Required: User can enter a bill amount, choose a tip percentage, and see the tip and total values.
  • Required: Settings page to change the default tip percentage.
  • Optional: Remembering the bill amount across app restarts (if <10mins)
  • Optional: Using locale-specific currency and currency thousands separators.
  • Optional: 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.
  • Additional: Remembering last tip percentage across app restarts
  • Additional: User can choose a tip percentage between 0 and 100
  • Additional: You can select default locale to change currency and thousands separators.

Video Walkthrough

Further notes:

  • A custom class has been created for CurrencyTextFields, to force input to always have 2 decimal places.
  • The bill splitting feature is not implemented, nor is clear, in the interest of time, though I've completed these in the original app in Objective C.