project requirements
Tip Calculator iOS App. It allows users to calculate tip totals and split the bill among multiple people. With Tippy, you can quickly and accurately calculate food and beverage tips or any other bill-sharing needs.
running result
Project source code
1. Main interface
import SwiftUI
@main
struct TippyApp: App {
@StateObject private var manager: DataManager = DataManager()
var body: some Scene {
WindowGroup {
TabView {
CalculationView()
.tabItem {
let calculateLocalizedString = NSLocalizedString("calculate_tab", comment: "Calculate Tab Name")
Label(calculateLocalizedString, systemImage: "percent")
.accessibilityLabel("Calculate")
.accessibilityHint("Calculate tip amounts")
}