Skip to content

Commit

Permalink
fix search not working
Browse files Browse the repository at this point in the history
  • Loading branch information
levinli303 committed Oct 9, 2024
1 parent c52e588 commit d6fc567
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
5 changes: 0 additions & 5 deletions CelestiaUI/UI/ToolbarAwareViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
8 changes: 4 additions & 4 deletions MobileCelestia.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d6fc567

Please sign in to comment.