diff --git a/Classes/Bookmark/BookmarkViewController.swift b/Classes/Bookmark/BookmarkViewController.swift index 09c3cc0d0..c97866a3d 100644 --- a/Classes/Bookmark/BookmarkViewController.swift +++ b/Classes/Bookmark/BookmarkViewController.swift @@ -99,6 +99,11 @@ TabNavRootViewControllerType { collectionView.collectionViewLayout.invalidateForOrientationChange() } } + + override func viewWillDisappear(_ animated: Bool) { + searchBar.resignFirstResponder() + } + private func update(animated: Bool) { adapter.performUpdates(animated: animated) @@ -148,6 +153,7 @@ TabNavRootViewControllerType { } func didDelete(bookmarkSectionController: BookmarkSectionController, viewModel: BookmarkViewModel) { + searchBar.resignFirstResponder() bookmarkStore.remove(viewModel.bookmark) update(animated: true) } diff --git a/Classes/Search/SearchResultSectionController.swift b/Classes/Search/SearchResultSectionController.swift index 3f5837ab4..99aa01d44 100644 --- a/Classes/Search/SearchResultSectionController.swift +++ b/Classes/Search/SearchResultSectionController.swift @@ -10,7 +10,6 @@ import IGListKit protocol SearchResultSectionControllerDelegate: class { func didSelect(sectionController: SearchResultSectionController, repo: RepositoryDetails) - } final class SearchResultSectionController: ListGenericSectionController {