Update QuizView.swift
Made bubbles less bubbly. Cheers!
This commit is contained in:
@@ -52,7 +52,7 @@ struct QuizView: View {
|
|||||||
.padding(10)
|
.padding(10)
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
.background(
|
.background(
|
||||||
Capsule()
|
RoundedRectangle(cornerRadius: 10)
|
||||||
.fill(bubbleColor(for: answer))
|
.fill(bubbleColor(for: answer))
|
||||||
)
|
)
|
||||||
.foregroundColor(.white)
|
.foregroundColor(.white)
|
||||||
@@ -64,18 +64,18 @@ struct QuizView: View {
|
|||||||
.foregroundColor(feedbackColor)
|
.foregroundColor(feedbackColor)
|
||||||
|
|
||||||
HStack {
|
HStack {
|
||||||
|
Button("Quit") {
|
||||||
|
showSummaryAlert = true
|
||||||
|
}
|
||||||
|
.tint(Color.gray)
|
||||||
|
|
||||||
|
Spacer()
|
||||||
|
|
||||||
Button("Next") {
|
Button("Next") {
|
||||||
nextQuestion()
|
nextQuestion()
|
||||||
}
|
}
|
||||||
.disabled(selectedAnswer == nil)
|
.disabled(selectedAnswer == nil)
|
||||||
.tint(Color.blue)
|
.tint(Color.blue)
|
||||||
|
|
||||||
Spacer()
|
|
||||||
|
|
||||||
Button("Quit") {
|
|
||||||
showSummaryAlert = true
|
|
||||||
}
|
|
||||||
.tint(Color.gray)
|
|
||||||
}
|
}
|
||||||
.padding(.top, 10)
|
.padding(.top, 10)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user