Skip to content

Commit

Permalink
[HOTFIX] 코칭 ON 레이아웃 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
cchanmi committed Jan 16, 2025
1 parent 2c9c870 commit 513c245
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ struct CoachingContentView: View {
}
}
}
.frame(width: screenWidth, height: screenHeight * (286 / screenHeight), alignment: .top)
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .top)
.tabViewStyle(.page(indexDisplayMode: .never))
.padding(.horizontal, 16.scaledByWidth())

PageControl(currentPage: $currentIndex, coachingResponse: $corrections)
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,10 @@ struct SegmentButton: View {
var body: some View {
Button(action: action) {
Text(title)
.padding(.vertical, 8.scaledByHeight())
.padding(.horizontal, 10.scaledByWidth())
.frame(maxWidth: .infinity)
.frame(maxWidth: .infinity, maxHeight: .infinity)
.background(backgroundColor)
.foregroundColor(foregroundColor)
.font(Font(UIFont.c5))
.minimumScaleFactor(0.9)
.overlay(
Group {
if isSelected && isFirstButton {
Expand All @@ -62,6 +59,7 @@ struct SegmentButton: View {
}
)
}
.frame(width: 70, height: 32)
}

private var backgroundColor: Color {
Expand Down

0 comments on commit 513c245

Please sign in to comment.