메시지 - 배너 광고 추가

This commit is contained in:
Yu Sung
2023-09-15 16:28:11 +09:00
parent 475882570a
commit a16c38f4ab
4 changed files with 33 additions and 2 deletions

View File

@@ -7,6 +7,7 @@
import SwiftUI
import Kingfisher
import GoogleMobileAds
struct SelectRecipientView: View {
@@ -34,7 +35,13 @@ struct SelectRecipientView: View {
.cornerRadius(10)
ScrollView(.vertical, showsIndicators: false) {
VStack(spacing: 26.7) {
LazyVStack(spacing: 26.7) {
BannerAdView(adUnitId: MESSAGE_BANNER_AD_UNIT_ID)
.frame(
width: screenSize().width,
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
)
ForEach(viewModel.users, id: \.self) { user in
HStack(spacing: 13.3) {
KFImage(URL(string: user.profileImageUrl))
@@ -56,9 +63,10 @@ struct SelectRecipientView: View {
isShowing = false
}
}
.frame(width: screenSize().width - 26.7)
}
}
.frame(width: screenSize().width - 26.7)
.frame(width: screenSize().width)
}
}
.onAppear {