我想Textfield在SwiftUI点击按钮时设置文本。我尝试使用@State变量但它给出错误
Textfield
SwiftUI
@State
ios swift swiftui
ios ×1
swift ×1
swiftui ×1