Skip to content

Commit

Permalink
[Feat] #31 - 회원가입_프로필 UI 구현 완료
Browse files Browse the repository at this point in the history
  • Loading branch information
Heyjooo committed Jan 10, 2024
1 parent bed4e52 commit 05dfd22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ extension JoinProfileViewController {
if value == 0 {
self.navigationController?.popViewController(animated: true)
} else {
// UserInfo 인스턴스 생성
let userNickname = UserInfo(userNickname: self.originView.nickNameTextField.text ?? "")
// Local DB에 저장
UserDefaults.standard.set(userNickname.userNickname, forKey: "nickname")

let viewContoller = OnboardingViewController()
self.navigationController?.pushViewController(viewContoller, animated: true)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class IntroductionView: UIView {

private let nickName: UILabel = {
let nickName = UILabel()
nickName.text = "닉네임"
nickName.text = UserDefaults.standard.string(forKey: "nickname")
nickName.textColor = .donBlack
nickName.font = .font(.head3)
return nickName
Expand Down

0 comments on commit 05dfd22

Please sign in to comment.