Why does this SwiftUI Picker code not work?
问题 Xcode: 11.2.1 The code below is for a simple form with two components; a Picker (to select a letter) and a Text (to display the selected letter). The code compiles and runs but, when a letter is selected it does not appear in the "Selected..." text. In addition, Xcode displays a (spurious?) run time warning the first time (only) a letter is selected.. struct ContentView: View { @State private var letter = "" private let letters = ["Alpha", "Bravo", "Charlie"] var body: some View {