From 6841fbe43e3a4d861147e095ec6589593e105e94 Mon Sep 17 00:00:00 2001 From: PangMo5 Date: Wed, 10 Nov 2021 19:09:08 +0900 Subject: [PATCH] change more simpler. --- .../ItemView/Landscape/ItemLandscapeMainView.swift | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/JellyfinPlayer/Views/ItemView/Landscape/ItemLandscapeMainView.swift b/JellyfinPlayer/Views/ItemView/Landscape/ItemLandscapeMainView.swift index 251c1cd6..85ca7248 100644 --- a/JellyfinPlayer/Views/ItemView/Landscape/ItemLandscapeMainView.swift +++ b/JellyfinPlayer/Views/ItemView/Landscape/ItemLandscapeMainView.swift @@ -92,18 +92,15 @@ struct ItemLandscapeMainView: View { .opacity(0.3) .edgesIgnoringSafeArea(.all) .blur(radius: 4) - .layoutPriority(1) + .layoutPriority(-1) // iPadOS is making the view go all the way to the edge. // We have to accomodate this here - Group { - if UIDevice.current.userInterfaceIdiom == .pad { - innerBody.padding(.horizontal, 25) - } else { - innerBody - } + if UIDevice.current.userInterfaceIdiom == .pad { + innerBody.padding(.horizontal, 25) + } else { + innerBody } - .layoutPriority(2) } } }