//
//  HWSearchBar.h
//  双子星云手机
//
//  Created by 余衡武 on 2022/3/9.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol HWSearchBarDelegate <NSObject>

@optional
- (void)searchBarWithText:(NSString *)text;
- (void)searchBarChangeText:(NSString *)text;
@end

@interface HWSearchBar : UIView

@property (weak, nonatomic) IBOutlet UIView         *bgView;
@property (weak, nonatomic) IBOutlet UITextField    *textField;

@property (weak, nonatomic) IBOutlet UIImageView    *searchImageView;
@property (weak, nonatomic) IBOutlet UILabel        *searchPlaceHolder;

@property (weak, nonatomic) id<HWSearchBarDelegate> delegate;

+ (instancetype)shareInstance;

@end

NS_ASSUME_NONNULL_END
