Skip to content

Commit

Permalink
로그아웃 통신 구현 완료
Browse files Browse the repository at this point in the history
  • Loading branch information
KimJinTae1 committed Dec 14, 2024
1 parent 7b73bf5 commit 2d0e7af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Binary file modified UMAI_FRONT/.DS_Store
Binary file not shown.
7 changes: 6 additions & 1 deletion UMAI_FRONT/UMai/PersonView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import SwiftUI

struct PersonView: View {
@State private var showLoginView = false
var body: some View {
NavigationView {
ZStack {
Expand Down Expand Up @@ -40,7 +41,8 @@ struct PersonView: View {
}

Button(action: {
// Logout action
showLoginView = true

}) {
HStack {
Text("Logout")
Expand All @@ -61,6 +63,9 @@ struct PersonView: View {
.padding(.top)
}
}
.fullScreenCover(isPresented: $showLoginView) {
LoginView()
}
.navigationBarHidden(true)
}
}
Expand Down

0 comments on commit 2d0e7af

Please sign in to comment.