From d56d3dcc76c12f2e6e8da2fd9aedd60cff5580fa Mon Sep 17 00:00:00 2001 From: kitcat Date: Mon, 22 Sep 2025 16:06:12 +0900 Subject: [PATCH] =?UTF-8?q?remove:=20DummyAction=20=EC=A0=9C=EA=B1=B0?= =?UTF-8?q?=ED=95=98=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iCo/Features/Base/RoundedButton.swift | 6 +-- .../Base/RoundedRectangleButton.swift | 4 +- .../Base/RoundedRectangleFillButton.swift | 40 ++++++++----------- .../Base/TimestampWithRefreshButtonView.swift | 2 +- .../RecomendationPlaceholderCardView.swift | 2 +- .../Onboarding/LastOnboardingPage.swift | 2 +- 6 files changed, 25 insertions(+), 31 deletions(-) diff --git a/AIProject/iCo/Features/Base/RoundedButton.swift b/AIProject/iCo/Features/Base/RoundedButton.swift index 6e17e8f1..563bb144 100644 --- a/AIProject/iCo/Features/Base/RoundedButton.swift +++ b/AIProject/iCo/Features/Base/RoundedButton.swift @@ -51,10 +51,10 @@ struct RoundedButton: View { #Preview { VStack { - RoundedButton(title: "With Image", imageName: "xmark", action: { dummyAction() }) + RoundedButton(title: "With Image", imageName: "xmark", action: { }) .disabled(true) - RoundedButton(title: "Text Only", imageName: nil, action: { dummyAction() }) - RoundedButton(title: nil, imageName: "xmark", action: { dummyAction() }) + RoundedButton(title: "Text Only", imageName: nil, action: { }) + RoundedButton(title: nil, imageName: "xmark", action: { }) } .padding() .background(.aiCoBackground) diff --git a/AIProject/iCo/Features/Base/RoundedRectangleButton.swift b/AIProject/iCo/Features/Base/RoundedRectangleButton.swift index 20669ea4..4719bd21 100644 --- a/AIProject/iCo/Features/Base/RoundedRectangleButton.swift +++ b/AIProject/iCo/Features/Base/RoundedRectangleButton.swift @@ -55,7 +55,7 @@ struct RoundedRectangleButton: View { #Preview { VStack { - RoundedRectangleButton(title: "가져오기") { dummyAction() } - RoundedRectangleButton(title: "가져오기", isActive: true) { dummyAction() } + RoundedRectangleButton(title: "가져오기") { } + RoundedRectangleButton(title: "가져오기", isActive: true) { } } } diff --git a/AIProject/iCo/Features/Base/RoundedRectangleFillButton.swift b/AIProject/iCo/Features/Base/RoundedRectangleFillButton.swift index 1cad882a..21d85f37 100644 --- a/AIProject/iCo/Features/Base/RoundedRectangleFillButton.swift +++ b/AIProject/iCo/Features/Base/RoundedRectangleFillButton.swift @@ -33,29 +33,6 @@ struct RoundedRectangleFillButton: View { } } -#if DEBUG -func dummyAction() { - print("sayHi") -} -#endif - -#Preview { - VStack(spacing: 16) { - HStack(spacing: 16) { - RoundedRectangleFillButton(title: "가져오기", imageName: "square.and.arrow.down", isHighlighted: .constant(false)) { dummyAction() } - RoundedRectangleFillButton(title: "내보내기", imageName: "square.and.arrow.up", isHighlighted: .constant(false)) { dummyAction() } - RoundedRectangleFillButton(title: "내보내기", imageName: "square.and.arrow.up", isHighlighted: .constant(false)) { dummyAction() } - .disabled(true) - } - - VStack(spacing: 16) { - RoundedRectangleFillButton(title: "내보내기", isHighlighted: .constant(false)) { dummyAction() } - RoundedRectangleFillButton(title: "내보내기", imageName: "square.and.arrow.up", isHighlighted: .constant(true)) - } - } - .padding(16) -} - struct RoundedRectangleFillButtonView: View { let cornerRadius: CGFloat = 10 @@ -91,3 +68,20 @@ struct RoundedRectangleFillButtonView: View { ) } } + +#Preview { + VStack(spacing: 16) { + HStack(spacing: 16) { + RoundedRectangleFillButton(title: "가져오기", imageName: "square.and.arrow.down", isHighlighted: .constant(false)) { } + RoundedRectangleFillButton(title: "내보내기", imageName: "square.and.arrow.up", isHighlighted: .constant(false)) { } + RoundedRectangleFillButton(title: "내보내기", imageName: "square.and.arrow.up", isHighlighted: .constant(false)) { } + .disabled(true) + } + + VStack(spacing: 16) { + RoundedRectangleFillButton(title: "내보내기", isHighlighted: .constant(false)) { } + RoundedRectangleFillButton(title: "내보내기", imageName: "square.and.arrow.up", isHighlighted: .constant(true)) + } + } + .padding(16) +} diff --git a/AIProject/iCo/Features/Base/TimestampWithRefreshButtonView.swift b/AIProject/iCo/Features/Base/TimestampWithRefreshButtonView.swift index 7be0358c..f9bbd0a4 100644 --- a/AIProject/iCo/Features/Base/TimestampWithRefreshButtonView.swift +++ b/AIProject/iCo/Features/Base/TimestampWithRefreshButtonView.swift @@ -34,5 +34,5 @@ struct TimestampWithRefreshButtonView: View { } #Preview { - TimestampWithRefreshButtonView(timestamp: Date.now, action: { dummyAction() }) + TimestampWithRefreshButtonView(timestamp: Date.now, action: { }) } diff --git a/AIProject/iCo/Features/Dashboard/View/RecomendationPlaceholderCardView.swift b/AIProject/iCo/Features/Dashboard/View/RecomendationPlaceholderCardView.swift index fabb33e7..96c61def 100644 --- a/AIProject/iCo/Features/Dashboard/View/RecomendationPlaceholderCardView.swift +++ b/AIProject/iCo/Features/Dashboard/View/RecomendationPlaceholderCardView.swift @@ -68,5 +68,5 @@ struct RecomendationPlaceholderCardView: View { } #Preview { - RecomendationPlaceholderCardView(status: .cancel, message: "아이코가 추천할 코인을\n고르는 중이에요", action: dummyAction) + RecomendationPlaceholderCardView(status: .cancel, message: "아이코가 추천할 코인을\n고르는 중이에요", action: { }) } diff --git a/AIProject/iCo/Features/Onboarding/LastOnboardingPage.swift b/AIProject/iCo/Features/Onboarding/LastOnboardingPage.swift index 58534cb9..511f4bfe 100644 --- a/AIProject/iCo/Features/Onboarding/LastOnboardingPage.swift +++ b/AIProject/iCo/Features/Onboarding/LastOnboardingPage.swift @@ -73,6 +73,6 @@ struct LastOnboardingPage: View { } #Preview { - LastOnboardingPage(isLandscape: .constant(true), onFinish: dummyAction) + LastOnboardingPage(isLandscape: .constant(true), onFinish: { }) .environmentObject(RecommendCoinViewModel()) }