Skip to content

Commit b3b2a8b

Browse files
authored
Merge pull request #1390 from OneSignal/fix/iam_status_bar
Update IAM view controller to hide status bar on full-bleed In-App Messages
2 parents c38544d + 55eed10 commit b3b2a8b

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)