diff --git a/CelestiaUI/UI/ToolbarAwareViewController.swift b/CelestiaUI/UI/ToolbarAwareViewController.swift index 5496c8ac..5fe910e9 100644 --- a/CelestiaUI/UI/ToolbarAwareViewController.swift +++ b/CelestiaUI/UI/ToolbarAwareViewController.swift @@ -380,11 +380,6 @@ extension NSToolbarItem { private static var searchItemClassPrepared = false static func searchItem(with itemIdentifier: NSToolbarItem.Identifier, currentText: String? = nil, textChangeHandler: @escaping (String?) -> Void, returnHandler: @escaping (String?) -> Void, searchStartHandler: @escaping () -> Void, searchEndHandler: @escaping () -> Void) -> NSToolbarItem { - if #available(iOS 17, *) { - let searchTextField = UISearchTextField() - let item = NSUIViewToolbarItem(itemIdentifier: itemIdentifier, uiView: searchTextField) - return item - } let item = SearchToolbarItem(itemIdentifier: itemIdentifier, currentText: currentText, textChangeHandler: textChangeHandler, returnHandler: returnHandler, searchStartHandler: searchStartHandler, searchEndHandler: searchEndHandler) return item } diff --git a/MobileCelestia.xcodeproj/project.pbxproj b/MobileCelestia.xcodeproj/project.pbxproj index e19111eb..b1c4fb85 100644 --- a/MobileCelestia.xcodeproj/project.pbxproj +++ b/MobileCelestia.xcodeproj/project.pbxproj @@ -1604,8 +1604,8 @@ MACOSX_DEPLOYMENT_TARGET = 11.0; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; - SHARED_BUILD_NUMBER = 505; - SHARED_BUILD_VERSION = 1.7.8; + SHARED_BUILD_NUMBER = 520; + SHARED_BUILD_VERSION = 1.7.9; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_STRICT_CONCURRENCY = targeted; @@ -1664,8 +1664,8 @@ IPHONEOS_DEPLOYMENT_TARGET = 14.0; MACOSX_DEPLOYMENT_TARGET = 11.0; SDKROOT = iphoneos; - SHARED_BUILD_NUMBER = 505; - SHARED_BUILD_VERSION = 1.7.8; + SHARED_BUILD_NUMBER = 520; + SHARED_BUILD_VERSION = 1.7.9; SWIFT_COMPILATION_MODE = wholemodule; SWIFT_OPTIMIZATION_LEVEL = "-O"; SWIFT_STRICT_CONCURRENCY = targeted;