Skip to content

Commit

Permalink
[Feat] sopt-makers#12 - 텍스트필드 밖 영역 클릭 시 키보드 내리기
Browse files Browse the repository at this point in the history
  • Loading branch information
lsj8706 committed Nov 28, 2022
1 parent 21689b3 commit b181471
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ public class SignUpVC: UIViewController {
self.bindViewModels()
self.setUI()
self.setLayout()
self.setTapGesture()
}

}

// MARK: - Methods
Expand Down Expand Up @@ -138,3 +140,13 @@ extension SignUpVC {
}
}
}

// MARK: - Methods

extension SignUpVC {
private func setTapGesture() {
let tap = UITapGestureRecognizer(target: view, action: #selector(UIView.endEditing))
tap.cancelsTouchesInView = false
view.addGestureRecognizer(tap)
}
}

0 comments on commit b181471

Please sign in to comment.