33 lines
893 B
Swift
33 lines
893 B
Swift
//
|
|
// ContentMainCurationView.swift
|
|
// SodaLive
|
|
//
|
|
// Created by klaus on 2023/08/11.
|
|
//
|
|
|
|
import SwiftUI
|
|
import GoogleMobileAds
|
|
|
|
struct ContentMainCurationView: View {
|
|
|
|
let items: [GetAudioContentCurationResponse]
|
|
|
|
var body: some View {
|
|
LazyVStack(spacing: 40) {
|
|
ForEach(0..<items.count, id: \.self) {
|
|
let item = items[$0]
|
|
ContentMainCurationItemView(item: item)
|
|
.padding(.horizontal, 13.3)
|
|
|
|
if $0 % 2 != 0 {
|
|
BannerAdView(adUnitId: CURATION_BANNER_AD_UNIT_ID)
|
|
.frame(
|
|
width: screenSize().width,
|
|
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
|
|
)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|