import SwiftUI
struct FormExample : View {
@State var yesno = false
var body: some View {
NavigationView {
Form {
Toggle("Yes/No", isOn: $yesno)
Text("Your choose is \(yesno.description)")
.font(.title3)
}
.navigationTitle("Yes/No")
}
}
}