메시지 - 배너 광고 추가

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

@@ -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,