Skip to content

This app calculates tip and divides the total in 4 or even 5 people if iPhone is taller.

Notifications You must be signed in to change notification settings

LuisMendez01/Tip-Calculator

Repository files navigation

Pre-work - Tip Calculator

*Tip Calculator is a tip calculator application for iOS.

Submitted by: Luis Mendez

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

  • List anything else that you can get done to improve the app functionality!
  • App layout works for all iPhones
  • If iPhone is not Iphone X does not show the fifth person to divide money by

Video Walkthrough

Here's a walkthrough of implemented user stories:

Video Walkthrough Video Walkthrough Video Walkthrough

GIF created with LiceCap.

Notes

Some challenges I encountered while building the app:

  1. The segmented control, I wanted to change the border color along with the background and font color of the non-active and active ones. So even though I found out how to do it, the functions I applied did not work because in swift 4 some functions were renamed as well as some attributes and that was hard to apply from the new things to the old things in the program.

  2. Also dealing with navigation bar was a challenge because even though the view for the color background was on top of the navigation bar, the navigation bar would not change to the view color. Besides the color issue, there was also a line at the bottom of the navigation bar, I called it the bottom border but online developers called it the hairline. Getting that to be removed was hard to find out how to do.

License

Copyright [2018] [Luis Mendez]

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.

About

This app calculates tip and divides the total in 4 or even 5 people if iPhone is taller.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages