콘텐츠 메인 - 배너 광고 위치 수정

This commit is contained in:
Yu Sung 2023-09-16 00:53:59 +09:00
parent 0294bbf223
commit 6e9aaa0c8a
2 changed files with 8 additions and 8 deletions

View File

@ -19,7 +19,7 @@ struct ContentMainCurationView: View {
ContentMainCurationItemView(item: item)
.padding(.horizontal, 13.3)
if $0 % 2 != 0 {
if $0 % 3 == 2 {
BannerAdView(adUnitId: CURATION_BANNER_AD_UNIT_ID)
.frame(
width: screenSize().width,

View File

@ -42,13 +42,6 @@ struct ContentMainView: View {
.padding(.horizontal, 13.3)
}
BannerAdView(adUnitId: CURATION_BANNER_AD_UNIT_ID)
.frame(
width: screenSize().width,
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
)
.padding(.bottom, 40)
if viewModel.orderList.count > 0 {
ContentMainMyStashView(items: viewModel.orderList)
.padding(.bottom, 40)
@ -63,6 +56,13 @@ struct ContentMainView: View {
)
.padding(.horizontal, 13.3)
BannerAdView(adUnitId: CURATION_BANNER_AD_UNIT_ID)
.frame(
width: screenSize().width,
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
)
.padding(.top, 30)
if viewModel.curationList.count > 0 {
ContentMainCurationView(items: viewModel.curationList)
.padding(.top, 40)