Skip to content

Commit 966002e

Browse files
committed
Fix: 루틴 등록 시, 키보드 내려가는 로직 수정
1 parent 20da270 commit 966002e

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Projects/Presentation/Sources/RoutineCreation/View/Component/RoutineCreationInputView.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ final class RoutineCreationInputView: UIView {
4848
textField.delegate = self
4949
textField.textColor = .black
5050
textField.font = BitnagilFont.init(style: .body2, weight: .semiBold).font
51+
textField.returnKeyType = .done
5152

5253
deleteButton.setImage(BitnagilIcon.deleteIcon, for: .normal)
5354
deleteButton.addAction(
@@ -102,4 +103,9 @@ extension RoutineCreationInputView: UITextFieldDelegate {
102103
}
103104
return true
104105
}
106+
107+
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
108+
textField.resignFirstResponder()
109+
return true
110+
}
105111
}

Projects/Presentation/Sources/RoutineCreation/View/RoutineCreationView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,8 @@ final class RoutineCreationView: BaseViewController<RoutineCreationViewModel> {
621621
repeatInfoButton.isSelected = false
622622
repeatToolTipView.hideTooltip()
623623
}
624+
625+
view.endEditing(true)
624626
}
625627
}
626628

0 commit comments

Comments
 (0)