From 425099955beab7b3a668dfee7f37eb5dcb853868 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Tue, 25 Aug 2026 16:11:35 +0900 Subject: [PATCH] =?UTF-8?q?fix(component):=20=ED=85=8D=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=20=ED=83=AD=20=EA=B0=80=EB=A1=9C=20=EC=8A=A4=ED=81=AC=EB=A1=A4?= =?UTF-8?q?=EC=9D=84=20=EC=A0=81=EC=9A=A9=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/V2/Component/TextTabBar.swift | 30 ++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/SodaLive/Sources/V2/Component/TextTabBar.swift b/SodaLive/Sources/V2/Component/TextTabBar.swift index 71ed5e39..bb496792 100644 --- a/SodaLive/Sources/V2/Component/TextTabBar.swift +++ b/SodaLive/Sources/V2/Component/TextTabBar.swift @@ -11,23 +11,25 @@ struct TextTabBar: View { let title: (Item) -> String var body: some View { - HStack(alignment: .center, spacing: SodaSpacing.s20) { - ForEach(items.prefix(3), id: \.self) { item in - Button { - selectedItem = item - } label: { - Text(title(item)) - .appFont(.heading3) - .foregroundColor(selectedItem == item ? Color.white : Color.gray600) - .frame(height: 52, alignment: .center) - .contentShape(Rectangle()) + ScrollView(.horizontal) { + HStack(alignment: .center, spacing: SodaSpacing.s20) { + ForEach(items.prefix(3), id: \.self) { item in + Button { + selectedItem = item + } label: { + Text(title(item)) + .appFont(.heading3) + .foregroundColor(selectedItem == item ? Color.white : Color.gray600) + .fixedSize(horizontal: true, vertical: false) + .frame(height: 52, alignment: .center) + .contentShape(Rectangle()) + } + .buttonStyle(.plain) } - .buttonStyle(.plain) } - - Spacer() + .padding(.horizontal, SodaSpacing.s20) } - .padding(.horizontal, SodaSpacing.s20) + .scrollIndicators(.hidden) .frame(maxWidth: .infinity) .frame(height: 52, alignment: .leading) .background(Color.black)