Skip to content

Commit

Permalink
[feat] 로그아웃 기능 추가 (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
BAEKYUJEONG committed Aug 30, 2024
1 parent 8a5a7f6 commit b958858
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion PLUV/MyPage/MyPageViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ class MyPageViewController: UIViewController {
.observe(on: MainScheduler.instance)
.subscribe(onNext: { [weak self] myPageItem in
if myPageItem == .LogOut {

AlertController(message: "로그아웃 하시겠어요?", isCancel: true) {
let LoginVC = UINavigationController(rootViewController: LoginViewController())
SceneDelegate().setRootViewController(LoginVC)
self?.navigationController?.popToRootViewController(animated: true)
}.show()
} else {
let webVC = WebViewController()
webVC.urlString = myPageItem.url
Expand Down

0 comments on commit b958858

Please sign in to comment.