Git Product home page Git Product logo

ios49000-prework's Introduction

Pre-work - Tippy

Tippy is a tip calculator application for iOS.

Submitted by: Ryan Sullivan

Time spent: 12 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:

  • [√] Light/Dark Mode
  • [√] Change tip amounts in segmented control
  • [√] Input sanitization (All inputs must be valid numbers)

Video Walkthrough

Here's a walkthrough of implemented user stories:

Video Walkthrough

GIF created with LiceCap.

Notes

Creating a textfield using a number formatter is very difficult, since you have to prevent the user from editing the commas or currency symbols. I'm not sure if there is a built in way to accomplish this, but it seemed like it required a lot of string manipulation with a ton of edge cases. Ultimately, I chose to only format the outputs and the placeholder. I thought this made the calculator more intuitive.

Also, Light and Dark mode took a lot of work. I think that in the future, it would make sense to subclass all UI elements so that they each handle their own theme colors.

License

Copyright [2019] [Ryan Sullivan]

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.

ios49000-prework's People

Contributors

ryannavillus avatar

Watchers

 avatar  avatar

ios49000-prework'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.