// // TUISearchBar.h // Pods // // Created by harvy on 2020/12/23. // Copyright © 2023 Tencent. All rights reserved. // #import NS_ASSUME_NONNULL_BEGIN @class TUISearchBar; @protocol TUISearchBarDelegate @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 delegate; // use weak, prevent circular references @property(nonatomic, weak) UIViewController *parentVC; - (void)setEntrance:(BOOL)isEntrance; @end NS_ASSUME_NONNULL_END