You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 821a94b
Browse filesBrowse the repository at this point in the historyBrowse files
iPhone Duo: story camera and editor clear the home indicator
On the folded screen (466x678) the 9:16 preview is 150pt taller than the
screen, so the camera and editor take their compact bottom layout, whose
offsets were tuned for home-button phones (the only other phones whose
preview overflows). Measured from the screen edge they put the camera's
mode selector, gallery and flip buttons, and the editor's bar, on the home
indicator (layout.intrinsicInsets.bottom, 20pt; the Duo's safeInsets.bottom
is 0).
- Camera: the bottom inset is at least the home indicator's (phones only).
Every other phone has more room than that below the preview, so only the
Duo changes. The collage reorder hint stays below the preview, as before.
- Editor: the bar sits 62pt above the indicator instead of the edge. The
drawing screen's bar keeps matching it (rows above move up with it), and
the sticker frame helper, shared with the cut-out screen, keeps its
bottom limit in step. Beside the unfolded status island the bar still
mirrors the top row, which already clears the indicator.
Checked on the Duo simulator, folded portrait: camera bottom row and
shutter 20pt higher, editor and drawing bars end at about 649pt, above the
indicator at about 669pt. Sticker editor not checked on screen.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
if!isTablet, case .stickerEditor=controller.mode,letstickerPreviewFrame=mediaEditorStickerPreviewFrame(screenSize:availableSize,safeInsets:environment.safeInsets,reservedCorners:environment.reservedCorners,statusBarHeight:environment.statusBarHeight,hasStatusIsland:environment.navigationBarTrailingButtonsInset>0.0){
895
+
if!isTablet, case .stickerEditor=controller.mode,letstickerPreviewFrame=mediaEditorStickerPreviewFrame(screenSize:availableSize,safeInsets:environment.safeInsets,reservedCorners:environment.reservedCorners,statusBarHeight:environment.statusBarHeight,hasStatusIsland:environment.navigationBarTrailingButtonsInset>0.0,homeIndicatorInset:component.bottomSafeInset){
890
896
// iPhone Duo: see `mediaEditorStickerPreviewFrame` (the node places the preview the same way).
891
897
previewSize=stickerPreviewFrame.size
892
898
previewFrame=stickerPreviewFrame
@@ -6122,7 +6128,7 @@ public final class MediaEditorScreenImpl: ViewController, MediaEditorScreen, UID
6122
6128
// `mediaEditorStickerPreviewFrame`; the component places them the same way). The insets above stay those of
6123
6129
// the full-width preview, so the bottom bar keeps its place.
6124
6130
varstickerPreviewOrigin:CGPoint?
6125
-
if!isTablet, case .stickerEditor=controller.mode,letstickerPreviewFrame=mediaEditorStickerPreviewFrame(screenSize:layout.size,safeInsets:layout.safeInsets,reservedCorners:layout.reservedCorners,statusBarHeight:layout.navigationBarStatusBarHeight??0.0,hasStatusIsland:layout.navigationBarTrailingButtonsInset>0.0){
6131
+
if!isTablet, case .stickerEditor=controller.mode,letstickerPreviewFrame=mediaEditorStickerPreviewFrame(screenSize:layout.size,safeInsets:layout.safeInsets,reservedCorners:layout.reservedCorners,statusBarHeight:layout.navigationBarStatusBarHeight??0.0,hasStatusIsland:layout.navigationBarTrailingButtonsInset>0.0,homeIndicatorInset:layout.intrinsicInsets.bottom){
0 commit comments