From 7050abb9599b6ca05abe8d5a6d01ee55cef0c6a3 Mon Sep 17 00:00:00 2001 From: Jihyun247 Date: Wed, 14 Aug 2024 18:22:28 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20box=20button=20width=20case=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OnboardingFeature/Sources/Onboarding/OnboardingView.swift | 2 +- .../Button/Detail/ButtonHuggingPriorityHorizontal.swift | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Projects/Feature/OnboardingFeature/Sources/Onboarding/OnboardingView.swift b/Projects/Feature/OnboardingFeature/Sources/Onboarding/OnboardingView.swift index 0bb96f0..ded4f00 100644 --- a/Projects/Feature/OnboardingFeature/Sources/Onboarding/OnboardingView.swift +++ b/Projects/Feature/OnboardingFeature/Sources/Onboarding/OnboardingView.swift @@ -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() diff --git a/Projects/Shared/DesignSystem/Sources/Component/Button/Detail/ButtonHuggingPriorityHorizontal.swift b/Projects/Shared/DesignSystem/Sources/Component/Button/Detail/ButtonHuggingPriorityHorizontal.swift index 1c3678e..ce86b5b 100644 --- a/Projects/Shared/DesignSystem/Sources/Component/Button/Detail/ButtonHuggingPriorityHorizontal.swift +++ b/Projects/Shared/DesignSystem/Sources/Component/Button/Detail/ButtonHuggingPriorityHorizontal.swift @@ -10,6 +10,7 @@ import Foundation public enum ButtonHuggingPriorityHorizontal { case high + case medium case low } @@ -17,6 +18,8 @@ extension ButtonHuggingPriorityHorizontal { var width: CGFloat? { switch self { case .high: + return nil + case .medium: return Alias.Size.ButtonWidth.fixed case .low: return .infinity