|
|
|
@ -20,13 +20,13 @@ struct ChoiceFinalAnswerCell: View {
|
|
|
|
|
HStack{
|
|
|
|
|
Spacer()
|
|
|
|
|
Text(answer.response)
|
|
|
|
|
.textStyle(weight: .bold, color: selected ? AllInColors.whiteColor :rawColor, size: 40).padding(.vertical, 10)
|
|
|
|
|
.textStyle(weight: .bold, color: selected ? .white :rawColor, size: 40).padding(.vertical, 10)
|
|
|
|
|
Spacer()
|
|
|
|
|
}
|
|
|
|
|
HStack{
|
|
|
|
|
Spacer()
|
|
|
|
|
OddCapsule(backgroundColor: selected ? AllInColors.whiteColor : AllInColors.purpleAccentColor, foregroundColor: selected ? AllInColors.purpleAccentColor : AllInColors.whiteColor ,odd: answer.odds ).padding(.trailing,20).scaleEffect(0.9)
|
|
|
|
|
OddCapsule(backgroundColor: selected ? .white : AllInColors.purpleAccentColor, foregroundColor: selected ? AllInColors.purpleAccentColor : .white ,odd: answer.odds ).padding(.trailing,20).scaleEffect(0.9)
|
|
|
|
|
}
|
|
|
|
|
}.background(selected ? AllInColors.purpleAccentColor : AllInColors.whiteColor).cornerRadius(17)
|
|
|
|
|
}.background(selected ? AllInColors.purpleAccentColor : .white).cornerRadius(17)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|