feat(chat): 톡 탭 상단에 Yandex 배너를 추가한다

Ultraworked with [Sisyphus]

https://github.com/code-yeongyu/oh-my-openagent

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
Yu Sung
2026-04-28 14:29:09 +09:00
parent 0f5cd8a904
commit 69a7d291d1

View File

@@ -13,13 +13,18 @@ struct TalkView: View {
var body: some View { var body: some View {
BaseView(isLoading: $viewModel.isLoading) { BaseView(isLoading: $viewModel.isLoading) {
ScrollView(.vertical, showsIndicators: false) {
LazyVStack(spacing: 24) {
YandexInlineBannerView(
placement: .chatTalkTabTop,
horizontalPadding: 24
)
if viewModel.talkRooms.isEmpty { if viewModel.talkRooms.isEmpty {
Text(I18n.Chat.Talk.emptyMessage) Text(I18n.Chat.Talk.emptyMessage)
.appFont(size: 20, weight: .regular) .appFont(size: 20, weight: .regular)
.foregroundColor(.white) .foregroundColor(.white)
} else { } else {
ScrollView(.vertical, showsIndicators: false) {
LazyVStack(spacing: 24) {
ForEach(0..<viewModel.talkRooms.count, id: \.self) { index in ForEach(0..<viewModel.talkRooms.count, id: \.self) { index in
let item = viewModel.talkRooms[index] let item = viewModel.talkRooms[index]
TalkItemView(item: item) TalkItemView(item: item)
@@ -38,14 +43,15 @@ struct TalkView: View {
} }
} }
} }
if viewModel.isLoadingMore { if viewModel.isLoadingMore {
ProgressView() ProgressView()
.progressViewStyle(CircularProgressViewStyle(tint: .white)) .progressViewStyle(CircularProgressViewStyle(tint: .white))
.padding(.vertical, 12) .padding(.vertical, 12)
} }
} }
.padding(.vertical, 24)
} }
.padding(.vertical, 12)
} }
} }
.onAppear { .onAppear {