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.
		
		
		
		
		
			
		
			
				
	
	
		
			29 lines
		
	
	
		
			767 B
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			29 lines
		
	
	
		
			767 B
		
	
	
	
		
			Objective-C
		
	
//
 | 
						|
//  Copyright (c) 2018 Open Whisper Systems. All rights reserved.
 | 
						|
//
 | 
						|
 | 
						|
#import <UIKit/UIKit.h>
 | 
						|
 | 
						|
NS_ASSUME_NONNULL_BEGIN
 | 
						|
 | 
						|
// Any view controller which wants to be able cancel back button
 | 
						|
// presses and back gestures should implement this protocol.
 | 
						|
@protocol OWSNavigationView <NSObject>
 | 
						|
 | 
						|
// shouldCancelNavigationBack will be called if the back button was pressed or
 | 
						|
// if a back gesture was performed but not if the view is popped programmatically.
 | 
						|
- (BOOL)shouldCancelNavigationBack;
 | 
						|
 | 
						|
@end
 | 
						|
 | 
						|
#pragma mark -
 | 
						|
 | 
						|
// This navigation controller subclass should be used anywhere we might
 | 
						|
// want to cancel back button presses or back gestures due to, for example,
 | 
						|
// unsaved changes.
 | 
						|
@interface OWSNavigationController : UINavigationController
 | 
						|
 | 
						|
@end
 | 
						|
 | 
						|
NS_ASSUME_NONNULL_END
 |