Skip to content

Commit

Permalink
#177 [FEAT] 둘러보기 아이디 설정, isLogin 값 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
comeheredart committed Apr 25, 2022
1 parent bccdd86 commit d7cc267
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class SNSLoginVC: UIViewController {
$0.titleLabel?.font = .notoSansMediumFont(ofSize: 14)
$0.setTitleColor(.mainBlue, for: .normal)
$0.contentHorizontalAlignment = .right
$0.addTarget(self, action: #selector(lookAroundButtonClicked), for: .touchUpInside)
}

let logoImageView = UIImageView().then {
Expand Down Expand Up @@ -88,6 +89,14 @@ class SNSLoginVC: UIViewController {
$0.addTarget(self, action: #selector(kakaoLogin), for: .touchUpInside)
}

@objc func lookAroundButtonClicked() {
UserDefaults.standard.set(false, forKey: "isLogin")
//여기 둘러보기 계정을 어떻게 할 건지 논의 필요 - 일단은 [email protected] 으로 해놓겠음
UserDefaults.standard.set("[email protected]", forKey: "userId")

self.goToHomeVC()
}


@objc func testLogin() {
snsType = "A"
Expand Down

0 comments on commit d7cc267

Please sign in to comment.