import SwiftUI

@main
struct TestApp: App {
   @State private var appData = ApplicationData.shared
   @FocusedValue(\.address) var addressValue: String?

   var body: some Scene {
      WindowGroup {
         ContentView()
      }
      .commands {
         CommandMenu("Options") {
            Button("Option 1", systemImage: "1.circle", action: {
               print("This is the option 1")
            })
            Button("Option 2", systemImage: "2.circle", action: {
               print("This is the option 2")
            })
            .disabled(addressValue == nil)
         }
      }
   }
}