Skip to content

Commit

Permalink
[Feat] Popup을 위로 보이게 #2
Browse files Browse the repository at this point in the history
  • Loading branch information
GeonHyeongKim committed Dec 28, 2022
1 parent 4b98c75 commit 3702911
Showing 1 changed file with 15 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,30 +104,29 @@ struct SignUpStep2View: View {
CustomProgressView(nowStep: 3)
} // toolbarItem
} // toolbar
.popup(isPresented: $isShowSucceedToast, type: .floater(useSafeAreaInset: true), position: .top, animation: .default, autohideIn: 2, dragToDismiss: true, closeOnTap: true, closeOnTapOutside: true, view: {
HStack {
Image(systemName: "checkmark.circle")
.foregroundColor(.white)

Text("회원가입이 성공적으로 완료되었습니다.")
.foregroundColor(.white)
.font(.footnote)
.bold()
}
.padding(EdgeInsets(top: 10, leading: 20, bottom: 10, trailing: 20))
.background(Color.green)
.cornerRadius(100)
}) // Toast

} // NavigationStack

if isShowSucceedToast {
Color.black
.opacity(0.7)
.ignoresSafeArea()
.popup(isPresented: $isShowSucceedToast, type: .floater(useSafeAreaInset: true), position: .top, animation: .default, autohideIn: 2, dragToDismiss: true, closeOnTap: true, closeOnTapOutside: true, view: {
HStack {
Image(systemName: "checkmark.circle")
.foregroundColor(.white)

Text("회원가입이 성공적으로 완료되었습니다.")
.foregroundColor(.white)
.font(.footnote)
.bold()
}
.padding(EdgeInsets(top: 10, leading: 20, bottom: 10, trailing: 20))
.background(Color.green)
.cornerRadius(100)
}) // Toast

ProgressView()
.foregroundColor(.black)
.progressViewStyle(CircularProgressViewStyle(tint: .accentColor))
.scaleEffect(3)
}
} // ZStack
Expand Down

0 comments on commit 3702911

Please sign in to comment.