The tip calculator iOS application of SwiftUI CoreData complete project, allowing users to calculate the total tip and divide the bill among multiple people (tutorial with source code)

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

Please add a picture description

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")
                    }
           

Guess you like

Origin blog.csdn.net/iCloudEnd/article/details/132334022