From ae99fb98a79bace82665f4b110aa2dc7abb6b6f4 Mon Sep 17 00:00:00 2001 From: Selim Mustafaev Date: Mon, 6 Feb 2023 23:43:17 +0300 Subject: [PATCH] Hiding keyboard on scroll in search results --- AutoCat.xcodeproj/project.pbxproj | 4 ++-- AutoCat/Controllers/SearchController.swift | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/AutoCat.xcodeproj/project.pbxproj b/AutoCat.xcodeproj/project.pbxproj index cb733b3..7fccfca 100644 --- a/AutoCat.xcodeproj/project.pbxproj +++ b/AutoCat.xcodeproj/project.pbxproj @@ -1140,7 +1140,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 109; + CURRENT_PROJECT_VERSION = 110; DEVELOPMENT_TEAM = 46DTTB8X4S; INFOPLIST_FILE = AutoCat/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 13.0; @@ -1165,7 +1165,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 109; + CURRENT_PROJECT_VERSION = 110; DEVELOPMENT_TEAM = 46DTTB8X4S; INFOPLIST_FILE = AutoCat/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 13.0; diff --git a/AutoCat/Controllers/SearchController.swift b/AutoCat/Controllers/SearchController.swift index f1531c7..f84e4c6 100644 --- a/AutoCat/Controllers/SearchController.swift +++ b/AutoCat/Controllers/SearchController.swift @@ -58,6 +58,7 @@ class SearchController: UIViewController, UISearchResultsUpdating, UITableViewDe self.datasource = RxSectionedDataSource(table: self.tableView) self.tableView.delegate = self + self.tableView.keyboardDismissMode = .onDrag DispatchQueue.main.async { self.filterRelay