메시지 - 배너 광고 추가
This commit is contained in:
parent
475882570a
commit
a16c38f4ab
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import GoogleMobileAds
|
||||
|
||||
struct MessageView: View {
|
||||
|
||||
|
@ -18,6 +19,13 @@ struct MessageView: View {
|
|||
|
||||
Tab()
|
||||
|
||||
BannerAdView(adUnitId: MESSAGE_BANNER_AD_UNIT_ID)
|
||||
.frame(
|
||||
width: screenSize().width,
|
||||
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
|
||||
)
|
||||
.padding(.top, 13.3)
|
||||
|
||||
Text("※ 보관하지 않은 받은 메시지는 3일 후, 자동 삭제됩니다.")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.padding(.top, 20)
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import GoogleMobileAds
|
||||
|
||||
struct TextMessageWriteView: View {
|
||||
|
||||
|
@ -80,6 +81,13 @@ struct TextMessageWriteView: View {
|
|||
}
|
||||
.frame(height: 50)
|
||||
|
||||
BannerAdView(adUnitId: MESSAGE_BANNER_AD_UNIT_ID)
|
||||
.frame(
|
||||
width: screenSize().width,
|
||||
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
|
||||
)
|
||||
.padding(.top, 13.3)
|
||||
|
||||
TextViewWrapper(
|
||||
text: $viewModel.message,
|
||||
placeholder: viewModel.placeholder,
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
import GoogleMobileAds
|
||||
|
||||
struct VoiceMessageWriteView: View {
|
||||
|
||||
|
@ -34,6 +35,12 @@ struct VoiceMessageWriteView: View {
|
|||
VStack {
|
||||
Spacer()
|
||||
VStack(spacing: 0) {
|
||||
BannerAdView(adUnitId: MESSAGE_BANNER_AD_UNIT_ID)
|
||||
.frame(
|
||||
width: screenSize().width,
|
||||
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
|
||||
)
|
||||
|
||||
HStack(spacing: 0) {
|
||||
Text("음성메시지")
|
||||
.font(.custom(Font.bold.rawValue, size: 18.3))
|
||||
|
|
Loading…
Reference in New Issue