라이브, 지금 라이브 중 전체보기 - 배너 광고 추가
This commit is contained in:
parent
a16c38f4ab
commit
b1773b117d
|
@ -17,7 +17,7 @@ let BOOTPAY_APP_ID = "6242a7772701800023f68b2f"
|
||||||
let FREE_CONTENT_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
let FREE_CONTENT_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
||||||
let CURATION_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
let CURATION_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
||||||
let ORDERLIST_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
let ORDERLIST_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
||||||
let LIVE_BANNER_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
let LIVE_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
||||||
let FOLLOWING_CHANNEL_LIST_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
let FOLLOWING_CHANNEL_LIST_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
||||||
let LIVE_NOW_ALL_LIST_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
let LIVE_NOW_ALL_LIST_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
||||||
let CREATOR_CHANNEL_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
let CREATOR_CHANNEL_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
import GoogleMobileAds
|
||||||
import RefreshableScrollView
|
import RefreshableScrollView
|
||||||
|
|
||||||
struct LiveView: View {
|
struct LiveView: View {
|
||||||
|
@ -29,8 +30,15 @@ struct LiveView: View {
|
||||||
if viewModel.recommendLiveItems.count > 0 {
|
if viewModel.recommendLiveItems.count > 0 {
|
||||||
SectionRecommendLiveView(items: viewModel.recommendLiveItems)
|
SectionRecommendLiveView(items: viewModel.recommendLiveItems)
|
||||||
.padding(.top, 13.3)
|
.padding(.top, 13.3)
|
||||||
|
.padding(.bottom, 40)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BannerAdView(adUnitId: LIVE_BANNER_AD_UNIT_ID)
|
||||||
|
.frame(
|
||||||
|
width: screenSize().width,
|
||||||
|
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
|
||||||
|
)
|
||||||
|
|
||||||
if viewModel.recommendChannelItems.count > 0 {
|
if viewModel.recommendChannelItems.count > 0 {
|
||||||
SectionRecommendChannelView(
|
SectionRecommendChannelView(
|
||||||
items: viewModel.isFollowingList ?
|
items: viewModel.isFollowingList ?
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
import GoogleMobileAds
|
||||||
import RefreshableScrollView
|
import RefreshableScrollView
|
||||||
|
|
||||||
struct LiveNowAllView: View {
|
struct LiveNowAllView: View {
|
||||||
|
@ -21,6 +22,13 @@ struct LiveNowAllView: View {
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
DetailNavigationBar(title: "지금 라이브 중 전체보기")
|
DetailNavigationBar(title: "지금 라이브 중 전체보기")
|
||||||
|
|
||||||
|
BannerAdView(adUnitId: LIVE_NOW_ALL_LIST_BANNER_AD_UNIT_ID)
|
||||||
|
.frame(
|
||||||
|
width: screenSize().width,
|
||||||
|
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
|
||||||
|
)
|
||||||
|
.padding(.vertical, 6.7)
|
||||||
|
|
||||||
RefreshableScrollView(
|
RefreshableScrollView(
|
||||||
refreshing: $viewModel.isRefresh,
|
refreshing: $viewModel.isRefresh,
|
||||||
action: {
|
action: {
|
||||||
|
|
Loading…
Reference in New Issue