From b1773b117d5f1ad2c7b6408aa85af43127c12c38 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Fri, 15 Sep 2023 17:03:16 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EC=9D=B4=EB=B8=8C,=20=EC=A7=80?= =?UTF-8?q?=EA=B8=88=20=EB=9D=BC=EC=9D=B4=EB=B8=8C=20=EC=A4=91=20=EC=A0=84?= =?UTF-8?q?=EC=B2=B4=EB=B3=B4=EA=B8=B0=20-=20=EB=B0=B0=EB=84=88=20?= =?UTF-8?q?=EA=B4=91=EA=B3=A0=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaLive/Sources/Debug/Utils/Constants.swift | 2 +- SodaLive/Sources/Live/LiveView.swift | 8 ++++++++ SodaLive/Sources/Live/Now/All/LiveNowAllView.swift | 8 ++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/SodaLive/Sources/Debug/Utils/Constants.swift b/SodaLive/Sources/Debug/Utils/Constants.swift index 2563d76..8cf97ac 100644 --- a/SodaLive/Sources/Debug/Utils/Constants.swift +++ b/SodaLive/Sources/Debug/Utils/Constants.swift @@ -17,7 +17,7 @@ let BOOTPAY_APP_ID = "6242a7772701800023f68b2f" let FREE_CONTENT_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 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 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" diff --git a/SodaLive/Sources/Live/LiveView.swift b/SodaLive/Sources/Live/LiveView.swift index d974380..a58a985 100644 --- a/SodaLive/Sources/Live/LiveView.swift +++ b/SodaLive/Sources/Live/LiveView.swift @@ -6,6 +6,7 @@ // import SwiftUI +import GoogleMobileAds import RefreshableScrollView struct LiveView: View { @@ -29,8 +30,15 @@ struct LiveView: View { if viewModel.recommendLiveItems.count > 0 { SectionRecommendLiveView(items: viewModel.recommendLiveItems) .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 { SectionRecommendChannelView( items: viewModel.isFollowingList ? diff --git a/SodaLive/Sources/Live/Now/All/LiveNowAllView.swift b/SodaLive/Sources/Live/Now/All/LiveNowAllView.swift index dfd7c90..70afd19 100644 --- a/SodaLive/Sources/Live/Now/All/LiveNowAllView.swift +++ b/SodaLive/Sources/Live/Now/All/LiveNowAllView.swift @@ -6,6 +6,7 @@ // import SwiftUI +import GoogleMobileAds import RefreshableScrollView struct LiveNowAllView: View { @@ -21,6 +22,13 @@ struct LiveNowAllView: View { VStack(spacing: 0) { 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( refreshing: $viewModel.isRefresh, action: {