Skip to content

Commit

Permalink
feat: 로그인이 되면 로그인 버튼이 로그아웃으로 변경되도록 구현 (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
AhnSangHee committed Jun 9, 2022
1 parent a338a73 commit cf87098
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iOS/airbnb/Present/Main/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ final class MainViewController: UIViewController {

@objc private func loginButtonTapped(_ sender: Any) {
alert(title: "알림", message: "로그인 되었습니다.")

loginButton.title = "로그아웃"
}

override func viewDidLoad() {
Expand Down

0 comments on commit cf87098

Please sign in to comment.