* make shouldCancelNavigationBack a var * rename OWSNavigationView->OWSNavigationChildController * forward delegate calls to OWSNavigationController * apply theme and style to OWSNavigationBar consistently fix themeing on gif picker controller * Use topPinned navbar position. Size the blur effect view using the background view * Use fade animation when hiding the navigation bar * fix issues with reduced transparency setting * pr feedback
56 lines
1.7 KiB
Objective-C
56 lines
1.7 KiB
Objective-C
//
|
|
// Copyright 2019 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
//
|
|
|
|
#import <SignalUI/OWSViewControllerObjc.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
typedef NS_CLOSED_ENUM(NSUInteger, RecipientPickerViewControllerGroupsToShow) {
|
|
RecipientPickerViewControllerGroupsToShow_ShowNoGroups = 0,
|
|
RecipientPickerViewControllerGroupsToShow_ShowGroupsThatUserIsMemberOfWhenSearching,
|
|
RecipientPickerViewControllerGroupsToShow_ShowAllGroupsWhenSearching,
|
|
};
|
|
|
|
@protocol RecipientPickerDelegate;
|
|
|
|
@class PickedRecipient;
|
|
|
|
@interface RecipientPickerViewController : OWSViewControllerObjc
|
|
|
|
@property (nonatomic, weak) id<RecipientPickerDelegate> delegate;
|
|
|
|
/// Defaults to `YES`
|
|
@property (nonatomic) BOOL allowsAddByPhoneNumber;
|
|
/// Defaults to `YES`
|
|
@property (nonatomic) BOOL shouldHideLocalRecipient;
|
|
/// Defaults to `YES`
|
|
@property (nonatomic) BOOL allowsSelectingUnregisteredPhoneNumbers;
|
|
/// Defaults to `RecipientPickerViewControllerGroupsToShow_ShowGroupsThatUserIsMemberOfWhenSearching`
|
|
@property (nonatomic) RecipientPickerViewControllerGroupsToShow groupsToShow;
|
|
/// Defaults to `NO`
|
|
@property (nonatomic) BOOL shouldShowInvites;
|
|
/// Defaults to `YES`
|
|
@property (nonatomic) BOOL shouldShowAlphabetSlider;
|
|
/// Defaults to `NO`
|
|
@property (nonatomic) BOOL shouldShowNewGroup;
|
|
/// Defaults to `NO`
|
|
@property (nonatomic) BOOL shouldUseAsyncSelection;
|
|
|
|
@property (nonatomic, nullable) NSString *findByPhoneNumberButtonTitle;
|
|
|
|
@property (nonatomic, nullable) NSArray<PickedRecipient *> *pickedRecipients;
|
|
|
|
@property (nonatomic) UITableView *tableView;
|
|
|
|
- (void)reloadContent;
|
|
|
|
- (void)clearSearchText;
|
|
|
|
- (void)applyThemeToViewController:(UIViewController *)viewController;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|