Skip to content

Commit

Permalink
[refactor] QuizIndexViewを QuizContentViewに移行
Browse files Browse the repository at this point in the history
  • Loading branch information
mrs1669 committed May 30, 2024
1 parent ac7b971 commit 1868b6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 5 additions & 2 deletions PrimePickApp/View/Quiz/QuizContent/QuizContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@ struct QuizContentView: View {
var body: some View {
GeometryReader { geometry in
VStack(spacing: .zero) {
QuizIndexView(difficulty: difficulty, quizNumber: $quizNumber)
.frame(height: geometry.size.height / 6)

QuizNumberView(
quizNumber: $quizNumber,
difficulty: difficulty,
quizData: quizData
)
.frame(height: geometry.size.height * 4 / 5)
.frame(height: geometry.size.height * 2 / 3)

QuizTimeLimitView(difficulty: difficulty)
.frame(height: geometry.size.height / 5)
.frame(height: geometry.size.height / 6)
}
}
}
Expand Down
5 changes: 1 addition & 4 deletions PrimePickApp/View/Quiz/QuizView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,12 @@ struct QuizView: View {
.ignoresSafeArea()

VStack(spacing: .zero) {
QuizIndexView(difficulty: difficulty, quizNumber: $quizNumber)
.frame(height: geometry.size.height / 12)

QuizContentView(
quizNumber: $quizNumber,
difficulty: difficulty,
quizData: quizData
)
.frame(height: geometry.size.height * 5 / 12)
.frame(height: geometry.size.height / 2)

Spacer()

Expand Down

0 comments on commit 1868b6e

Please sign in to comment.