Files
featherVoice/TUIKit/TUISearch/UI_Classic/UI/TUISearchBar.h
2025-08-08 10:49:36 +08:00

35 lines
772 B
Objective-C

//
// TUISearchBar.h
// Pods
//
// Created by harvy on 2020/12/23.
// Copyright © 2023 Tencent. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@class TUISearchBar;
@protocol TUISearchBarDelegate <NSObject>
@optional
- (void)searchBarDidEnterSearch:(TUISearchBar *)searchBar;
- (void)searchBarDidCancelClicked:(TUISearchBar *)searchBar;
- (void)searchBar:(TUISearchBar *)searchBar searchText:(NSString *)key;
@end
@interface TUISearchBar : UIView
@property(nonatomic, strong, readonly) UISearchBar *searchBar;
@property(nonatomic, weak) id<TUISearchBarDelegate> delegate;
// use weak, prevent circular references
@property(nonatomic, weak) UIViewController *parentVC;
- (void)setEntrance:(BOOL)isEntrance;
@end
NS_ASSUME_NONNULL_END