From ac3e003447a8f34f7c0cad8a090fd475a2aea7f6 Mon Sep 17 00:00:00 2001 From: opficdev Date: Tue, 17 Mar 2026 14:31:22 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20strokeBorder=EB=A1=9C=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC=ED=95=98=EC=97=AC=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DevLog/UI/Extension/View+.swift | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/DevLog/UI/Extension/View+.swift b/DevLog/UI/Extension/View+.swift index 4b42a5b7..11760d7c 100644 --- a/DevLog/UI/Extension/View+.swift +++ b/DevLog/UI/Extension/View+.swift @@ -93,10 +93,10 @@ private struct ScrollViewOffsetTracker: UIViewRepresentable { extension View { @ViewBuilder - func adaptiveButtonStyle( - shape: some Shape = .capsule, - color: Color = .clear) - -> some View { + func adaptiveButtonStyle( + shape: S = Capsule(), + color: Color = .clear + ) -> some View { if #available(iOS 26.0, *) { self.foregroundStyle(Color(.label)) .padding(8) @@ -106,19 +106,9 @@ extension View { self.foregroundStyle(Color(.label)) .padding(8) .background { - Group { - if color == .clear { - shape - .fill(Color(.systemGray5)) - } else { - shape - .fill(color) - } - } - .overlay { - shape - .stroke(Color.white.opacity(0.2), lineWidth: 1) - } + shape + .fill(color == .clear ? Color(.systemGray5) : color) + .strokeBorder(Color.white.opacity(0.2), lineWidth: 1) } } }