From 663ccc1dc124afc135414030aba6c08ca8b1dcfc Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 21 Oct 2022 12:23:30 +0800 Subject: [PATCH] Remove NavigationView so iPad aligns to top of sheet Also animate the miniplayer away so its not visible on ipad when open in landscape mode. --- .../Sources/App/Views/AudioPlayer/MiniPlayer.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/AudioPlayer/MiniPlayer.swift b/apple/OmnivoreKit/Sources/App/Views/AudioPlayer/MiniPlayer.swift index cd91d1892..20db25aab 100644 --- a/apple/OmnivoreKit/Sources/App/Views/AudioPlayer/MiniPlayer.swift +++ b/apple/OmnivoreKit/Sources/App/Views/AudioPlayer/MiniPlayer.swift @@ -148,10 +148,10 @@ .onTapGesture { withAnimation(.easeIn(duration: 0.08)) { expanded = true } }.sheet(isPresented: $expanded) { - NavigationView { - ExpandedPlayer() - } + ExpandedPlayer() } + .offset(y: expanded ? 88 : 0) + .opacity(expanded ? 0.0 : 1.0) } public var body: some View {