import SwiftUI

@main
struct TestApp: App {
   @AppStorage("totalItems") var totalItems: Int = 0
   
   var body: some Scene {
      WindowGroup {
         ContentView()
      }
      #if os(macOS)
      Settings {
         HStack {
            Stepper("Total Items", value: $totalItems)
            Text(String(totalItems))
               .font(.title.bold())
         }.frame(width: 200, height: 150)
      }
      #endif
   }
}