/BMI-Calculator

Check your BMI on the way!

Primary LanguageSwift

BMI Calculator

Goal

The goal of this project was to learn more about Optionals, solidify understanding of the MVC design pattern and to learn about the concept of Classes. Compared objects of classes with the instances of structs and understood the difference between them.

What did I create

Created a Body Mass Index calculator. Based on the user’s weight and height it will calculate their body mass and give a piece of health advice depending on whether if they have eaten too many pies or if they need to eat more pies.

What did I learn

  • How to create multi-screen apps with animated navigation.
  • Optional binding, optional chaining and the nil coalescing operator.
  • How to create classes and difference between classes and structs.
  • Pass by value vs. pass by reference.
  • Formatting Strings.
  • Color literals.

Screenshot 2022-04-10 at 22 25 09

Screenshot 2022-04-10 at 22 25 18

Note: This project is part of the iOS App development Bootcamp by Angela Yu on UDEMY. I only cloned the skeleton of the project and worked on the project and created a functional app all by myself.