Skip to content

Commit fc7ef3b

Browse files
committed
Make the crop view full screen on iOS 26
1 parent 8d725a4 commit fc7ef3b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Objective-C/TOCropViewController/TOCropViewController.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,11 @@ - (CGRect)frameForCropViewWithVerticalLayout:(BOOL)verticalLayout
314314
view = self.parentViewController.view;
315315
}
316316

317+
// Always make the crop view edge-to-edge on iOS 26 and up
318+
if (@available(iOS 26.0, *)) {
319+
return view.bounds;
320+
}
321+
317322
UIEdgeInsets insets = self.statusBarSafeInsets;
318323

319324
CGRect bounds = view.bounds;

0 commit comments

Comments
 (0)