// // SectionRecommendLiveView.swift // SodaLive // // Created by klaus on 2023/08/09. // import SwiftUI import Kingfisher struct SectionRecommendLiveView: View { let items: [GetRecommendLiveResponse] @State private var currentIndex = 0 @State private var timer = Timer.publish(every: 3, on: .main, in: .common).autoconnect() @AppStorage("token") private var token: String = UserDefaults.string(forKey: UserDefaultsKey.token) var body: some View { VStack(spacing: 0) { HStack(spacing: 0) { Text("추천 ") .font(.custom(Font.bold.rawValue, size: 18.3)) .foregroundColor(Color(hex: "ff5c49")) Text("라이브") .font(.custom(Font.bold.rawValue, size: 18.3)) .foregroundColor(.grayee) Spacer() if !token.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty { Image("ic_message") .onTapGesture { AppState.shared.setAppStep(step: .message) } } } .frame(width: screenSize().width - 26.7, alignment: .leading) TabView(selection: $currentIndex) { ForEach(0..