I'm not sure what exactly you searching for. This is the SwiftUI iOS 15 way:
TextField("Placeholder", text: $text, onCommit: {
// Add Text to Array
}).submitLabel(.done)
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: