// // 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() 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(Color(hex: "eeeeee")) } .frame(width: screenSize().width - 26.7, alignment: .leading) TabView(selection: $currentIndex) { ForEach(0..