feat(chat-room-bg): 배경 이미지 변경 기능 추가

This commit is contained in:
Yu Sung
2025-09-04 16:44:57 +09:00
parent a025e455a0
commit ee67e1eab7
10 changed files with 277 additions and 18 deletions

View File

@@ -10,7 +10,7 @@ import SwiftUI
struct CharacterDetailGalleryView: View {
@StateObject var viewModel = CharacterDetailGalleryViewModel()
private let columns = Array(repeating: GridItem(.flexible()), count: 3)
private let columns = Array(repeating: GridItem(.flexible(), spacing: 0), count: 3)
let characterId: Int
//
@@ -30,7 +30,7 @@ struct CharacterDetailGalleryView: View {
//
ScrollView {
LazyVGrid(columns: columns, spacing: 2) {
LazyVGrid(columns: columns, spacing: 0) {
ForEach(Array(viewModel.galleryItems.enumerated()), id: \.element.id) { index, item in
galleryImageView(item: item, index: index)
.onAppear {
@@ -38,7 +38,7 @@ struct CharacterDetailGalleryView: View {
}
}
}
.padding(.horizontal, 0)
.frame(width: screenSize().width)
}
Spacer()