Giter Site home page Giter Site logo

albinencio / tipper Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.18 MB

Tipper is a tip calculator application for iOS. I developed it as part of the application process to a bootcamp on iOS Development offered by CodePath.org at UC San Diego.

Swift 100.00%
ios swift tip-calculator tipper bill codepath

tipper's Introduction

Pre-work - Tipper

Tipper is a tip calculator application for iOS.

Submitted by: Alberto Nencioni

Time spent: 20 hours spent in total

User Stories

The following required functionality is complete:

  • User can enter a bill amount, choose a tip percentage, and see the tip and total values.

The following optional features are implemented:

  • Settings page to change the default tip percentage.
  • UI animations
  • Remembering the bill amount across app restarts (if <10mins)
  • Using locale-specific currency and currency thousands separators.
  • 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.

The following additional features are implemented:

  • Custom segmented control to have a better, personalized design. Implemented following this tutorial.
  • Slider to see amount when splitting bill with 2 to 10 people.
  • Settings page to change the default group size.

Video Walkthrough

Here's a walkthrough of implemented user stories:

Video Walkthrough

GIF created with LiceCap.

Notes

This was my very first exposure to iOS development, therefore I took most of the time to try to understand the basics, aside from following the guidelines provided. The most challenging part was definitely trying to implement a customized segmented control, especially since I had to adjust what I had programmed following the tutorial to what was required by the app's implementation. The main change I had to make, which was the origin to the other adjustments I had to deal with, was to instantiate the selectedSegmentIndex variable so that it would have called updateView() every time it was set. This was the optimal solution which allowed for a correct behavior when switching from the Settings to the Tip Calculator view: the segmented control inside Tip Calculator reflected the changes made in Settings. Overall, the more I worked on the project, the more comfortable I felt with what I was doing, the more easily I completed and added the new features.

License

Copyright © 2017 Alberto Nencioni. All rights reserved. 

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

tipper's People

Contributors

albinencio avatar

Watchers

 avatar

tipper's Issues

Project Feedback!

Great work!! This exercise is intended in part to give you an introduction to the general rhythm of this course. The course is entirely project-based with an app being assigned each week and then due the following week. Each project builds on the last to help each engineer learn the practical elements of iOS development and best practices as quickly as possible. We also do a code review for each submitted project once the program begins.

Great to see you were able to complete a large number of optional features to your app already. Your project looks great. As you can probably tell, the optional features available on each project are a great vehicle for exploring the iOS framework deeper.

We have a detailed Prework Feedback Guide which gives a high-level overview of the concepts covered in the project. Take a moment to go through the Swift 3 style guides and tweak your project to conform to these style conventions.

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.