회원가입 페이지

This commit is contained in:
Yu Sung
2023-08-09 19:27:53 +09:00
parent 1bc62f8fbd
commit 6953ce3e3e
19 changed files with 830 additions and 8 deletions

View File

@@ -13,9 +13,7 @@ struct LoginView: View {
@ObservedObject var viewModel = LoginViewModel()
var body: some View {
ZStack {
Color.black.ignoresSafeArea()
BaseView(isLoading: $viewModel.isLoading) {
VStack(spacing: 0) {
HomeNavigationBar(title: "로그인") {}
@@ -69,9 +67,22 @@ struct LoginView: View {
Spacer()
}
if viewModel.isLoading {
LoadingView()
}
.popup(isPresented: $viewModel.isShowPopup, type: .toast, position: .top, autohideIn: 2) {
GeometryReader { geo in
HStack {
Spacer()
Text(viewModel.errorMessage)
.padding(.vertical, 13.3)
.frame(width: geo.size.width - 66.7, alignment: .center)
.font(.custom(Font.medium.rawValue, size: 12))
.background(Color(hex: "9970ff"))
.foregroundColor(Color.white)
.multilineTextAlignment(.center)
.cornerRadius(20)
.padding(.top, 66.7)
Spacer()
}
}
}
}