TextFieldLink
A control that requests text input from the user when pressed
Platform Compatibility
watchOS 9.0+
Tags
SwiftUI Code
TextFieldLink("Set Text", prompt: Text("Custom Placeholder")) { str in
print("Typed text: \(str)")
}
Found an issue or have a suggestion?
Created: June 5, 2025Updated: June 5, 2025