From 592d06046d10c08c68f90e61ce438ab31c19f6f0 Mon Sep 17 00:00:00 2001
From: dayo2n <0217dayun@naver.com>
Date: Thu, 2 Feb 2023 21:54:09 +0900
Subject: [PATCH] =?UTF-8?q?[FEAT][#2]=20=EB=84=A4=EB=B9=84=EA=B2=8C?=
 =?UTF-8?q?=EC=9D=B4=EC=85=98=20=EB=B0=94=20=EC=BB=A4=EC=8A=A4=ED=85=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../CheckSecurityCodeController.swift           | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/momoIOS/Authentication/Controller/CheckSecurityCodeController.swift b/momoIOS/Authentication/Controller/CheckSecurityCodeController.swift
index 315236c..0b2612d 100644
--- a/momoIOS/Authentication/Controller/CheckSecurityCodeController.swift
+++ b/momoIOS/Authentication/Controller/CheckSecurityCodeController.swift
@@ -41,6 +41,7 @@ class CheckSecurityCodeController: UIViewController {
         codeField.delegate = self
         
         view.backgroundColor = .white
+        setNavCustom()
         configureUI()
         codeField.becomeFirstResponder()
     }
@@ -55,7 +56,20 @@ class CheckSecurityCodeController: UIViewController {
         })    }
     
     // MARK: - Helpers
-    func configureUI() {
+    
+    private func setNavCustom() {
+        let navBar = self.navigationController?.navigationBar
+        navBar?.tintColor = .black
+        navBar?.backIndicatorImage = UIImage(systemName: "arrow.left")
+        navBar?.backIndicatorTransitionMaskImage = UIImage(systemName: "arrow.left")
+        navBar?.topItem?.title = ""
+        
+        let title = UILabel()
+        title.text = "회원가입"
+        self.navigationItem.titleView = title
+    }
+    
+    private func configureUI() {
         view.addSubview(guidePhrase)
         guidePhrase.snp.makeConstraints { make in
             make.top.equalTo(view.safeAreaLayoutGuide).offset(50)
@@ -89,7 +103,6 @@ extension CheckSecurityCodeController: UITextFieldDelegate {
         guard let text = textField.text else { return false }
         let maxLength: Int = 12
             
-        // 최대 글자수 이상을 입력한 이후에는 중간에 다른 글자를 추가할 수 없게끔 작동
         if text.count >= maxLength && range.length == 0 && range.location <= maxLength {
             return false
         }