From 3ea006c208d7f3821c80a76338db56e3c01e8e9b Mon Sep 17 00:00:00 2001 From: Selim Mustafaev Date: Fri, 30 Sep 2022 22:30:55 +0300 Subject: [PATCH] Filtering by location dates. Add author name to location model. Adding button for updating search results --- AutoCat.xcodeproj/project.pbxproj | 4 +- AutoCat/AppDelegate.swift | 2 +- AutoCat/Base.lproj/Main.storyboard | 110 ++++++++++-------- AutoCat/Cells/EventCell.swift | 10 ++ AutoCat/Controllers/FiltersController.swift | 30 ++++- .../Location/LocationEditController.swift | 2 +- AutoCat/Controllers/SearchController.swift | 21 +++- AutoCat/ru.lproj/Localizable.strings | 3 + AutoCatCore/Models/Filter.swift | 10 ++ AutoCatCore/Models/VehicleEvent.swift | 11 +- AutoCatCore/Utils/Location.swift | 2 +- 11 files changed, 137 insertions(+), 68 deletions(-) diff --git a/AutoCat.xcodeproj/project.pbxproj b/AutoCat.xcodeproj/project.pbxproj index 547d625..d94817e 100644 --- a/AutoCat.xcodeproj/project.pbxproj +++ b/AutoCat.xcodeproj/project.pbxproj @@ -1080,7 +1080,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 95; + CURRENT_PROJECT_VERSION = 96; DEVELOPMENT_TEAM = 46DTTB8X4S; INFOPLIST_FILE = AutoCat/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 13.0; @@ -1105,7 +1105,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 95; + CURRENT_PROJECT_VERSION = 96; DEVELOPMENT_TEAM = 46DTTB8X4S; INFOPLIST_FILE = AutoCat/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 13.0; diff --git a/AutoCat/AppDelegate.swift b/AutoCat/AppDelegate.swift index 476f72d..3954792 100644 --- a/AutoCat/AppDelegate.swift +++ b/AutoCat/AppDelegate.swift @@ -26,7 +26,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { let config = Realm.Configuration( - schemaVersion: 37, + schemaVersion: 38, migrationBlock: { migration, oldSchemaVersion in if oldSchemaVersion <= 3 { var numbers: [String] = [] diff --git a/AutoCat/Base.lproj/Main.storyboard b/AutoCat/Base.lproj/Main.storyboard index b013ab5..245ba40 100644 --- a/AutoCat/Base.lproj/Main.storyboard +++ b/AutoCat/Base.lproj/Main.storyboard @@ -1,9 +1,9 @@ - + - + @@ -85,23 +85,23 @@ - + - + - +