Skip to content

Commit b3e78d1

Browse files
committed
Account for new status bar behaviour in iOS 17
1 parent 18495fa commit b3e78d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Objective-C/TOCropViewController/TOCropViewController.m

+3
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,9 @@ - (UIStatusBarStyle)preferredStatusBarStyle
241241

242242
// Even though we are a dark theme, leave the status bar
243243
// as black so it's not obvious that it's still visible during the transition
244+
if (@available(iOS 13.0, *)) {
245+
return UIStatusBarStyleDarkContent;
246+
}
244247
return UIStatusBarStyleDefault;
245248
}
246249

0 commit comments

Comments
 (0)