mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
643 B
Objective-C
32 lines
643 B
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class OWSSearchBar;
|
|
|
|
@protocol OWSSearchBarDelegate <NSObject>
|
|
|
|
- (void)searchBar:(OWSSearchBar *)searchBar textDidChange:(NSString *)text;
|
|
- (void)searchBar:(OWSSearchBar *)searchBar returnWasPressed:(NSString *)text;
|
|
|
|
@optional
|
|
- (void)searchBarDidBeginEditing:(OWSSearchBar *)searchBar;
|
|
|
|
@end
|
|
|
|
#pragma mark -
|
|
|
|
@interface OWSSearchBar : UIView
|
|
|
|
@property (nonatomic, weak) id<OWSSearchBarDelegate> delegate;
|
|
|
|
@property (nonatomic, nullable) NSString *text;
|
|
|
|
@property (nonatomic, nullable) NSString *placeholder;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|