Skip to content

Conversation

@lsj8706
Copy link
Collaborator

@lsj8706 lsj8706 commented Apr 28, 2023

🌱 작업한 내용

  • 로그아웃을 구현했습니다.
  • 회원 탈퇴를 구현했습니다.
  • 토큰 리프레시 로직에 오류가 있어서 이것을 해결했습니다. (간혹 빌드 시에 바로 앱이 꺼지는 현상 수정)
  • 코스 발견에서 업로드하기 버튼을 + 업로드로 변경했습니다. (디자인 파트 요청 사항)
  • RNAlertVC 구현 (logoutVC 수정)

🌱 PR Point

  • 재현이가 만들어둔 logoutVC를 RNAlertVC로 변경하고 코드를 조금 수정하여 해당 뷰 형태가 사용되는 모든 곳에서 사용할 수 있도록 했습니다.
private func pushToLogoutVC() {
    let logoutVC = RNAlertVC(description: "로그아웃 하시겠어요?")
    logoutVC.rightButtonTapAction = { [weak self] in
        self?.logout()
    }
    logoutVC.modalPresentationStyle = .overFullScreen
    self.present(logoutVC, animated: false)
}

이런식으로 rightButtonTapAction에 클로저로 버튼 터치 시 동작할 코드를 넣으면 됩니다.

이러한 형태의 Alert가 반복되기 때문에 컴포넌트화를 시킨 것이고 이로 인해 DeleteAccountVC도 필요 없어졌습니다.

  • 코드 리뷰는 언제나 환영합니다~~!

📸 스크린샷

구현 내용 스크린샷
RNAlertVC image
  • 로그아웃
Simulator.Screen.Recording.-.iPhone.14.-.2023-04-29.at.01.44.01.mp4

📮 관련 이슈

@lsj8706 lsj8706 added Feat 새로운 기능 구현 세진☃️ labels Apr 28, 2023
@lsj8706 lsj8706 self-assigned this Apr 28, 2023
Copy link
Collaborator

@lee-yeonwoo lee-yeonwoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

회원탈퇴,로그아웃 구현 ... !! 복잡해보이는데 잘해놓으셨네용 ..갓러넥트아요리더 !!! 👍 (코드리뷰못해서미아내..)

@lsj8706 lsj8706 merged commit 704931b into Runnect:develop May 4, 2023
@lsj8706 lsj8706 deleted the feat/#129-회원탈퇴-및-로그아웃 branch May 4, 2023 08:11
@dlwogus0128
Copy link
Contributor

멋멋져요...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feat 새로운 기능 구현 세진☃️

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Feat] 회원 탈퇴 및 로그아웃 기능 구현

3 participants