How lavsdcoder/bmi-calculator-ios13 works
Project type and purpose
• This is an iOS mobile app built in Swift, following the MVC pattern.
• It calculates Body Mass Index (BMI) based on user input, then displays health advice.
File structure
• Top-level Xcode project files (BMI Calculator.xcodeproj) define build settings, schemes, and workspaces.
• The “BMI Calculator” folder contains:
– AppDelegate.swift + SceneDelegate.swift: the application lifecycle entry points.
– Controllers/: CalculateViewController.swift and ResultViewController.swift implement the UI logic.
– Models/: BMI.swift and CalculatorBrain.swift encapsulate data and business logic.
– Views/ + Base.lproj/Main.storyboard: UI definitions for the two screens.
• Info.plist configures app metadata and permissions.
Extract architecture insights from the README
• The app is explicitly designed to teach MVC, Optionals, classes vs. structs.
• Two screens are navigated with animation: a data entry screen and a results screen.