Skip to content

Commit

Permalink
Improve PDFSearchViewController keyboard dismiss mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mvasilak committed Feb 26, 2024
1 parent a2e0fd6 commit 9b08d69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ final class PDFSearchViewController: UIViewController {
tableView.translatesAutoresizingMaskIntoConstraints = false
tableView.dataSource = self
tableView.delegate = self
tableView.keyboardDismissMode = UIDevice.current.userInterfaceIdiom == .pad ? .none : .interactive
tableView.keyboardDismissMode = UIDevice.current.userInterfaceIdiom == .pad ? .none : .onDrag
tableView.register(UINib(nibName: "PDFSearchCell", bundle: nil), forCellReuseIdentifier: PDFSearchViewController.cellId)
view.addSubview(tableView)
self.tableView = tableView
Expand Down

0 comments on commit 9b08d69

Please sign in to comment.