iOS Swift - User Input and Forms
What will be the output when this SwiftUI code runs?
struct ContentView: View {
@State private var selected = 1
var body: some View {
Picker("Number", selection: $selected) {
Text("One").tag(1)
Text("Two").tag(2)
}
Text("Selected: \(selected)")
}
}