mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-04 13:59:23 +01:00
Dismiss keyboard when text fields are done editing
This commit is contained in:
parent
9d72fede05
commit
890c146c7e
@ -34,12 +34,14 @@ class AddFeedViewController: UITableViewController, AddContainerViewControllerCh
|
||||
urlTextField.autocorrectionType = .no
|
||||
urlTextField.autocapitalizationType = .none
|
||||
urlTextField.text = initialFeed
|
||||
urlTextField.delegate = self
|
||||
|
||||
if initialFeed != nil {
|
||||
delegate?.readyToAdd(state: true)
|
||||
}
|
||||
|
||||
nameTextField.text = initialFeedName
|
||||
nameTextField.delegate = self
|
||||
|
||||
pickerData = AddFeedFolderPickerData()
|
||||
folderPickerView.dataSource = self
|
||||
@ -200,3 +202,12 @@ private extension AddFeedViewController {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
extension AddFeedViewController: UITextFieldDelegate {
|
||||
|
||||
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
|
||||
textField.resignFirstResponder()
|
||||
return true
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user