// // ContentMainBannerViewV2.swift // SodaLive // // Created by klaus on 2/20/25. // import SwiftUI import Kingfisher struct ContentMainBannerViewV2: View { let bannerList: [GetAudioContentBannerResponse] @State var currentIndex = 0 @State var timer = Timer.publish(every: 3, on: .main, in: .common).autoconnect() @State var width: CGFloat = 0 @State var height: CGFloat = 0 var body: some View { VStack(spacing: 0) { TabView(selection: $currentIndex) { ForEach(0.. 0, let url = URL(string: link), UIApplication.shared.canOpenURL(url) { UIApplication.shared.open(url) } } } } }