Files
sodalive-ios/SodaLive/Sources/Content/Series/Main/ByGenre/SeriesMainByGenreView.swift

47 lines
1.2 KiB
Swift

//
// SeriesMainByGenreView.swift
// SodaLive
//
// Created by klaus on 11/14/25.
//
import SwiftUI
struct SeriesMainByGenreView: View {
@StateObject var viewModel = SeriesMainByGenreViewModel()
var body: some View {
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()
}
}
}
}
#Preview {
SeriesMainByGenreView()
}