콘텐츠 상세 - 배너 광고 위치 수정

This commit is contained in:
Yu Sung 2023-09-16 01:31:11 +09:00
parent 4c9e78f960
commit 2449eb14d0
1 changed files with 9 additions and 9 deletions

View File

@ -72,15 +72,6 @@ struct ContentDetailView: View {
isShowPreviewAlert: $viewModel.isShowPreviewAlert
)
if audioContent.price <= 0 || (audioContent.price > 0 && !audioContent.existOrdered) {
BannerAdView(adUnitId: FREE_CONTENT_BANNER_AD_UNIT_ID)
.frame(
width: screenSize().width,
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
)
.padding(.top, 13.3)
}
ContentDetailInfoView(
isExpandDescription: $viewModel.isExpandDescription,
isShowPreviewAlert: $viewModel.isShowPreviewAlert,
@ -127,6 +118,15 @@ struct ContentDetailView: View {
}
}
if audioContent.price <= 0 || (audioContent.price > 0 && !audioContent.existOrdered) {
BannerAdView(adUnitId: FREE_CONTENT_BANNER_AD_UNIT_ID)
.frame(
width: screenSize().width,
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
)
.padding(.top, 13.3)
}
Rectangle()
.foregroundColor(Color(hex: "232323"))
.frame(height: 6.7)