Skip to content

Commit

Permalink
[FEAT][#55] Admin side 새 기수 시작 flow 중 입력 글자 제한
Browse files Browse the repository at this point in the history
- 활동기수 입력은 only 숫자: 키보드 타입을 number pad로 변경
- 가입보안코드 최대 12글자, 이후 입력되지 않도록 구현
- 가입보안코드는 only 영어+숫자 조합: 추후 확인버튼을 누른 후 검사하기로
  • Loading branch information
dayo2n committed Feb 14, 2023
1 parent 954eb51 commit f0d4260
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class InputMoimYearController: UIViewController, UITextFieldDelegate {

self.setupKeyboardNotifications()
self.setupAction()

self.codeField.keyboardType = .numberPad
self.view.backgroundColor = .white
self.setupCustomNav()
self.setupLayout()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class InputSecurityCodeViewController: UIViewController {

// MARK: - Properties

// private let codeRegEx = "[A-Za-z0-9]{6,12}"

private var isEditingCode: Bool {
return self.codeField.isEditing
}
Expand All @@ -38,6 +40,7 @@ class InputSecurityCodeViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
self.view.backgroundColor = .white
self.codeField.delegate = self
self.setupKeyboardNotifications()
self.setupCustomNav()
self.setupLayout()
Expand Down

0 comments on commit f0d4260

Please sign in to comment.