diff --git a/Examples/Sources/GreetingGeneratorExample/GreetingGeneratorApp.swift b/Examples/Sources/GreetingGeneratorExample/GreetingGeneratorApp.swift index 463ce4d343..1f1b6f9e92 100644 --- a/Examples/Sources/GreetingGeneratorExample/GreetingGeneratorApp.swift +++ b/Examples/Sources/GreetingGeneratorExample/GreetingGeneratorApp.swift @@ -15,7 +15,7 @@ struct GreetingGeneratorApp: App { WindowGroup("Greeting Generator") { #hotReloadable { VStack { - TextField("Name", $name) + TextField("Name", text: $name) HStack { Button("Generate") { greetings.append("Hello, \(name)!")