From 49e014878de11cfe6787935f7e77a63d440daa02 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Fri, 12 Sep 2025 01:45:47 +0900 Subject: [PATCH] =?UTF-8?q?fix(character-banner):=20indicator=20=EC=9C=84?= =?UTF-8?q?=EC=B9=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Banner/AutoSlideCharacterBannerView.swift | 76 ++++++++++++------- 1 file changed, 47 insertions(+), 29 deletions(-) diff --git a/SodaLive/Sources/Chat/Character/Banner/AutoSlideCharacterBannerView.swift b/SodaLive/Sources/Chat/Character/Banner/AutoSlideCharacterBannerView.swift index eb51c02..2995c22 100644 --- a/SodaLive/Sources/Chat/Character/Banner/AutoSlideCharacterBannerView.swift +++ b/SodaLive/Sources/Chat/Character/Banner/AutoSlideCharacterBannerView.swift @@ -12,40 +12,58 @@ struct AutoSlideCharacterBannerView: View { var items: [CharacterBannerResponse] = [] var onTap: (CharacterBannerResponse) -> Void = { _ in } - @State private var index: Int = 0 + @State private var currentIndex: Int = 0 @State private var height: CGFloat = 0 private let timer = Timer.publish(every: 4, on: .main, in: .common).autoconnect() var body: some View { - TabView(selection: $index) { - ForEach(0..