Skip to content

Commit

Permalink
fix: box button width case 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Jihyun247 committed Aug 14, 2024
1 parent a27d210 commit 7050abb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public struct OnboardingView: View {
Button(title: "시작하기") {
// 다음 뷰 이동
}
.buttonStyle(.box(level: .primary, size: .large, width: .high))
.buttonStyle(.box(level: .primary, size: .large, width: .medium))
.padding(.top, 16)
}
Spacer()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ import Foundation

public enum ButtonHuggingPriorityHorizontal {
case high
case medium
case low
}

extension ButtonHuggingPriorityHorizontal {
var width: CGFloat? {
switch self {
case .high:
return nil
case .medium:
return Alias.Size.ButtonWidth.fixed
case .low:
return .infinity
Expand Down

0 comments on commit 7050abb

Please sign in to comment.