Dont show the mini player when expanded player is open on iPad landscape

This commit is contained in:
Jackson Harper 2022-10-21 16:46:53 +08:00
parent 126d79446b
commit f14f92499b

View file

@ -161,12 +161,12 @@
if let itemAudioProperties = self.audioController.itemAudioProperties, isPresented {
ZStack(alignment: .bottom) {
Color.systemBackground.edgesIgnoringSafeArea(.bottom)
.frame(height: 88, alignment: .bottom)
.frame(height: expanded ? 0 : 88, alignment: .bottom)
VStack {
Spacer(minLength: 0)
playerContent(itemAudioProperties)
.frame(maxHeight: 88)
.frame(maxHeight: expanded ? 0 : 88)
.tint(.appGrayTextContrast)
.background(Color.systemBackground)
}