라이브 - 배너 광고 위치 변경

This commit is contained in:
Yu Sung
2023-09-16 00:10:58 +09:00
parent 36aa167e1d
commit 0294bbf223
3 changed files with 31 additions and 65 deletions

View File

@@ -33,12 +33,6 @@ struct LiveView: View {
.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 ?
@@ -46,21 +40,25 @@ struct LiveView: View {
viewModel.recommendChannelItems,
isFollowingList: $viewModel.isFollowingList
)
.padding(.top, 40)
}
if viewModel.liveNowItems.count > 0 {
SectionLiveNowView(
items: viewModel.liveNowItems,
onClickParticipant: {
viewModel.enterRoom(roomId: $0)
},
onTapCreateLive: {
AppState.shared.setAppStep(step: .createLive(timeSettingMode: .NOW, onSuccess: onCreateSuccess))
}
BannerAdView(adUnitId: LIVE_BANNER_AD_UNIT_ID)
.frame(
width: screenSize().width,
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
)
.padding(.top, 40)
}
SectionLiveNowView(
items: viewModel.liveNowItems,
onClickParticipant: {
viewModel.enterRoom(roomId: $0)
},
onTapCreateLive: {
AppState.shared.setAppStep(step: .createLive(timeSettingMode: .NOW, onSuccess: onCreateSuccess))
}
)
.padding(.top, 40)
if viewModel.eventBannerItems.count > 0 {
SectionEventBannerView(items: viewModel.eventBannerItems)
@@ -72,20 +70,18 @@ struct LiveView: View {
.padding(.top, 40)
}
if viewModel.liveReservationItems.count > 0 {
SectionLiveReservationView(
items: viewModel.liveReservationItems,
onClickCancel: { viewModel.getSummary() },
onClickStart: { roomId in processStart(roomId: roomId) },
onClickReservation: { roomId in
viewModel.reservationLiveRoom(roomId: roomId)
},
onTapCreateLive: {
AppState.shared.setAppStep(step: .createLive(timeSettingMode: .RESERVATION, onSuccess: onCreateSuccess))
}
)
.padding(.top, 40)
}
SectionLiveReservationView(
items: viewModel.liveReservationItems,
onClickCancel: { viewModel.getSummary() },
onClickStart: { roomId in processStart(roomId: roomId) },
onClickReservation: { roomId in
viewModel.reservationLiveRoom(roomId: roomId)
},
onTapCreateLive: {
AppState.shared.setAppStep(step: .createLive(timeSettingMode: .RESERVATION, onSuccess: onCreateSuccess))
}
)
.padding(.top, 40)
}
}
.frame(width: geo.size.width, height: geo.size.height)