Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 6e1b004

Browse files
Huddiernystrom
authored andcommitted
Resign keyboard search (#2077)
* Project icon * Resign keyboard
1 parent ee84943 commit 6e1b004

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Classes/Bookmark/BookmarkViewController.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ TabNavRootViewControllerType {
9999
collectionView.collectionViewLayout.invalidateForOrientationChange()
100100
}
101101
}
102+
103+
override func viewWillDisappear(_ animated: Bool) {
104+
searchBar.resignFirstResponder()
105+
}
106+
102107

103108
private func update(animated: Bool) {
104109
adapter.performUpdates(animated: animated)
@@ -148,6 +153,7 @@ TabNavRootViewControllerType {
148153
}
149154

150155
func didDelete(bookmarkSectionController: BookmarkSectionController, viewModel: BookmarkViewModel) {
156+
searchBar.resignFirstResponder()
151157
bookmarkStore.remove(viewModel.bookmark)
152158
update(animated: true)
153159
}

Classes/Search/SearchResultSectionController.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import IGListKit
1010

1111
protocol SearchResultSectionControllerDelegate: class {
1212
func didSelect(sectionController: SearchResultSectionController, repo: RepositoryDetails)
13-
1413
}
1514

1615
final class SearchResultSectionController: ListGenericSectionController<SearchRepoResult> {

0 commit comments

Comments
 (0)