Giter Site home page Giter Site logo

tipcalculator's Introduction

Tip Calculator

Manage your tip the easier way

Time spent: 2.5 hours

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: UI animations
  • Optional: Remembering the bill amount across app restarts (if <10mins)
  • Optional: Using locale-specific currency and currency thousands separators.
  • Additional: 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: Theming the Settings page like the main application page.
  • Additional: Also remembering the tip percentage across app restarts.

Additional

  • Use enum Tip to abstract Tip management
  • Display flag image for current locale
  • Custom view controller transition animation
  • Change amount resgion color to indicate value changed
  • Save and load tip preference using NSUserDefaults
  • Use callback block for SettingViewController instead of Delegate pattern for notifying tip prefrerence changed

Environment

  • Xcode 7.1
  • Swift 2.1
  • Cocoapods 0.39.0

Dependencies

  • FlatKit: for flag images
  • BubbleTransition: for cool bubble presentation view controller transition
  • Chameleon: for flat color

Demo

Demo

GIF created with LiceCap.

tipcalculator's People

Contributors

khuong291 avatar

Watchers

James Cloos avatar  avatar  avatar

tipcalculator's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.