photo view ignores bottom edge of safe area (#1708)

This commit is contained in:
Thai D. V 2023-12-05 14:23:42 +07:00 committed by GitHub
parent a86048de33
commit 330aa93437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -17,10 +17,12 @@ public struct MediaUIView: View, @unchecked Sendable {
DisplayView(data: $0) DisplayView(data: $0)
.containerRelativeFrame([.horizontal, .vertical]) .containerRelativeFrame([.horizontal, .vertical])
.id($0) .id($0)
.safeAreaPadding($0.type == .av ? [.bottom] : [])
} }
} }
.scrollTargetLayout() .scrollTargetLayout()
} }
.ignoresSafeArea(.all, edges: .bottom)
.focusable() .focusable()
.focused($isFocused) .focused($isFocused)
.focusEffectDisabled() .focusEffectDisabled()