feat(series-all-by-genre): 시리즈 전체보기 장르별 탭 - API 추가

This commit is contained in:
Yu Sung
2025-11-15 05:41:14 +09:00
parent 5fcc6a9a60
commit cb1b26c548
4 changed files with 194 additions and 2 deletions

View File

@@ -8,8 +8,36 @@
import SwiftUI
struct SeriesMainByGenreView: View {
@StateObject var viewModel = SeriesMainByGenreViewModel()
var body: some View {
Text("시리즈 전체보기 장르별")
ZStack {
VStack(spacing: 16) {
}
.popup(isPresented: $viewModel.isShowPopup, type: .toast, position: .bottom, autohideIn: 2) {
HStack {
Spacer()
Text(viewModel.errorMessage)
.padding(.vertical, 13.3)
.frame(width: screenSize().width - 66.7, alignment: .center)
.font(.custom(Font.medium.rawValue, size: 12))
.background(Color.button)
.foregroundColor(Color.white)
.multilineTextAlignment(.leading)
.cornerRadius(20)
.padding(.bottom, 66.7)
Spacer()
}
}
.onAppear {
viewModel.getGenreList()
}
if viewModel.isLoading {
LoadingView()
}
}
}
}