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