How can I add a TextField to the .alert() function in SwiftUI? I only can find solutions that need Swift, and not SwiftUI.
.alert(isPresented:$showingAlert) {
Alert(
title: Text("What is your name?"),
message: Text("Fill in your name in the TextField beow"),
primaryButton: .default(Text("OK")) {
print("Opening...")
},
secondaryButton: .cancel() {
print("cancelled)
}
)
}