From 330aa93437a48e84eb868a3b5e401d01fb87cacc Mon Sep 17 00:00:00 2001 From: "Thai D. V" <46838577+thai-d-v@users.noreply.github.com> Date: Tue, 5 Dec 2023 14:23:42 +0700 Subject: [PATCH] photo view ignores bottom edge of safe area (#1708) --- Packages/MediaUI/Sources/MediaUI/MediaUIView.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Packages/MediaUI/Sources/MediaUI/MediaUIView.swift b/Packages/MediaUI/Sources/MediaUI/MediaUIView.swift index 77fa3931..0a5291e1 100644 --- a/Packages/MediaUI/Sources/MediaUI/MediaUIView.swift +++ b/Packages/MediaUI/Sources/MediaUI/MediaUIView.swift @@ -17,10 +17,12 @@ public struct MediaUIView: View, @unchecked Sendable { DisplayView(data: $0) .containerRelativeFrame([.horizontal, .vertical]) .id($0) + .safeAreaPadding($0.type == .av ? [.bottom] : []) } } .scrollTargetLayout() } + .ignoresSafeArea(.all, edges: .bottom) .focusable() .focused($isFocused) .focusEffectDisabled()