feat(series-all-home): 오류 토스트 UI 추가

This commit is contained in:
Yu Sung
2025-11-15 03:10:02 +09:00
parent 43629a27b8
commit 9cea4c244a

View File

@@ -97,6 +97,21 @@ struct SeriesMainHomeView: View {
} }
} }
} }
.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 { .onAppear {
viewModel.fetchHome() viewModel.fetchHome()
} }