session-ios/SignalUtilitiesKit/Shared View Controllers/OWSViewController.h

30 lines
814 B
C
Raw Normal View History

//
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
BOOL IsLandscapeOrientationEnabled(void);
UIInterfaceOrientationMask DefaultUIInterfaceOrientationMask(void);
@interface OWSViewController : UIViewController
2017-10-20 04:37:17 +02:00
@property (nonatomic) BOOL shouldIgnoreKeyboardChanges;
2018-07-23 21:03:07 +02:00
@property (nonatomic) BOOL shouldUseTheme;
2018-04-02 23:00:55 +02:00
// We often want to pin one view to the bottom of a view controller
// BUT adjust its location upward if the keyboard appears.
2018-08-08 21:49:22 +02:00
- (void)autoPinViewToBottomOfViewControllerOrKeyboard:(UIView *)view avoidNotch:(BOOL)avoidNotch;
2017-10-10 22:13:54 +02:00
// If YES, the bottom view never "reclaims" layout space if the keyboard is dismissed.
// Defaults to NO.
@property (nonatomic) BOOL shouldBottomViewReserveSpaceForKeyboard;
@end
NS_ASSUME_NONNULL_END