Skip to content

Commit 55eed10

Browse files
committed
Update IAM view controller to hide status bar if full-bleed
1 parent 5ff232e commit 55eed10

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

iOS_SDK/OneSignalSDK/OneSignalInAppMessages/UI/OSInAppMessageViewController.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ - (instancetype _Nonnull)initWithMessage:(OSInAppMessageInternal *)inAppMessage
109109
return self;
110110
}
111111

112+
- (BOOL)prefersStatusBarHidden {
113+
// Only the full-bleed IAM should remove status bar
114+
return self.isFullscreen;
115+
}
116+
112117
- (void)viewDidLoad {
113118
[super viewDidLoad];
114119

0 commit comments

Comments
 (0)