Skip to content

Commit f8c3227

Browse files
author
Artsem Lemiasheuski
committed
Make the searchBar in focus and show the keyboard after pressing search button.
1 parent e8055fc commit f8c3227

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

OpenDocumentReader/DocumentViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ class DocumentViewController: UIViewController, DocumentDelegate, GADBannerViewD
173173
}
174174

175175
private func showSearchBar() {
176+
searchBar.becomeFirstResponder()
176177
searchBar.isHidden = false
177178
searchBarHeight.constant = 56.0
178179
searchBarTop.constant = 0.0

0 commit comments

Comments
 (0)