Skip to content

Commit

Permalink
[#234] 내 정보를 수정하는 화면임을 나타내는 ViewController로 개명
Browse files Browse the repository at this point in the history
  • Loading branch information
jayn2u committed Feb 18, 2025
1 parent 9776d84 commit 38041cc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// MyInfoView.swift
// EditProfileView.swift
// EATSSU
//
// Created by Jiwoong CHOI on 01/31/25.
Expand All @@ -13,7 +13,7 @@ import SnapKit
import Then

/// 사용자의 닉네임과 소속(단과대학 및 학과)을 설정하는 화면의 View
final class MyInfoView: BaseView {
final class EditProfileView: BaseView {
// MARK: - Properties

/// 사용자가 입력한 닉네임 값
Expand Down Expand Up @@ -206,7 +206,7 @@ final class MyInfoView: BaseView {

// MARK: - UITextFieldDelegate

extension MyInfoView: UITextFieldDelegate {
extension EditProfileView: UITextFieldDelegate {
/// 사용자가 Return 키를 누르면 키보드를 내림
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
textField.resignFirstResponder()
Expand Down Expand Up @@ -253,7 +253,7 @@ extension MyInfoView: UITextFieldDelegate {

// MARK: - UIPickerViewDataSource, UIPickerViewDelegate

extension MyInfoView: UIPickerViewDataSource, UIPickerViewDelegate {
extension EditProfileView: UIPickerViewDataSource, UIPickerViewDelegate {
func numberOfComponents(in _: UIPickerView) -> Int { 1 }

func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent _: Int) -> Int {
Expand Down Expand Up @@ -320,7 +320,7 @@ extension MyInfoView: UIPickerViewDataSource, UIPickerViewDelegate {

// MARK: - Validation User Information

extension MyInfoView {
extension EditProfileView {
/// 닉네임 입력 값이 없을 때 기본 메시지 표시
func updateTextFieldForEmptyState() {
nicknameValidationLabel.text = NicknameTextFieldResultType.textFieldEmpty.hintMessage
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// MyInfoViewController.swift
// EditProfileViewController.swift
// EATSSU
//
// Created by Jiwoong CHOI on 01/31/25.
Expand All @@ -12,7 +12,7 @@ import EATSSUNetwork
import Moya

/// 사용자의 닉네임을 설정 및 검증할 수 있는 화면입니다.
final class MyInfoViewController: BaseViewController {
final class EditProfileViewController: BaseViewController {
// MARK: - Properties

/// 현재 키보드 높이를 저장하는 변수입니다.
Expand All @@ -24,7 +24,7 @@ final class MyInfoViewController: BaseViewController {
// MARK: - UI Components

/// 사용자 정보 입력 및 닉네임 설정 UI를 포함하는 뷰입니다.
let myInfoView = MyInfoView()
let myInfoView = EditProfileView()

// MARK: - Life Cycle

Expand Down Expand Up @@ -127,7 +127,7 @@ final class MyInfoViewController: BaseViewController {

// MARK: - 네트워크 요청

extension MyInfoViewController {
extension EditProfileViewController {
/// 사용자의 닉네임을 서버에 설정하는 API 요청을 보냅니다.
/// - Parameter nickname: 사용자가 입력한 닉네임
func setUserNickname(nickname: String) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ extension MyPageViewController: UITableViewDelegate {
}

case MyPageLabelsIndex.MyInfo.rawValue:
let myInfoViewController = MyInfoViewController()
let myInfoViewController = EditProfileViewController()
navigationController?.pushViewController(myInfoViewController, animated: true)

// "내가 쓴 리뷰"
Expand Down

0 comments on commit 38041cc

Please sign in to comment.