how to make a quiz swift stack overflow code example
Example: how to make a quiz swift stack overflow
let quesInfoArr = [
QuesInfo(question: "this is your first question",
answers: [
Answer(answer: "ansA", isSelected: false),
Answer(answer: "ansB", isSelected: false),
Answer(answer: "ansC", isSelected: false),
Answer(answer: "ansD", isSelected: false)
]),
QuesInfo(question: "this is your second question",
answers: [
Answer(answer: "ansA", isSelected: false),
Answer(answer: "ansB", isSelected: false),
Answer(answer: "ansC", isSelected: false),
Answer(answer: "ansD", isSelected: false)
]),
QuesInfo(question: "this is your third question",
answers: [
Answer(answer: "ansA", isSelected: false),
Answer(answer: "ansB", isSelected: false),
Answer(answer: "ansC", isSelected: false),
Answer(answer: "ansD", isSelected: false)
]),
QuesInfo(question: "this is your fourth question",
answers: [
Answer(answer: "ansA", isSelected: false),
Answer(answer: "ansB", isSelected: false),
Answer(answer: "ansC", isSelected: false),
Answer(answer: "ansD", isSelected: false)
])
]