Signal-iOS/SignalUI/ViewControllers/OWSNavigationControllerBase.h
Harry d06babf59f
Translate OWSNavigationController to swift
* Translate OWSNavigationController to swift

* pr feedback
2022-11-03 15:33:02 -07:00

21 lines
639 B
Objective-C

//
// Copyright 2017 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
/// This subclass exists purely to expose UINavigationController's implementation of
/// UINavigationBarDelegate to the swift subclass OWSNavigationController. Objc
/// can force a call to the superclass' implenentation of navigationBar(: shouldPopItem:) but
/// swift can't do that, so we wrap it in objc.
@interface OWSNavigationControllerBase : UINavigationController
- (BOOL)ows_navigationBar:(UINavigationBar *)navigationBar shouldPopItem:(UINavigationItem *)item;
@end
NS_ASSUME_NONNULL_END