diff --git a/Sources/MiniPlayerApp.swift b/Sources/MiniPlayerApp.swift index 3e26e0e..8700f85 100644 --- a/Sources/MiniPlayerApp.swift +++ b/Sources/MiniPlayerApp.swift @@ -583,9 +583,14 @@ struct BricksAppView: View { bridge.showToastMsg(error.localizedDescription) } } - .sheet(item: $bridge.hlsRecorder.pendingExportURL) { url in - ActivityShareSheet(url: url) { - bridge.hlsRecorder.pendingExportURL = nil + .sheet(isPresented: Binding( + get: { bridge.hlsRecorder.pendingExportURL != nil }, + set: { if !$0 { bridge.hlsRecorder.pendingExportURL = nil } } + )) { + if let url = bridge.hlsRecorder.pendingExportURL { + ActivityShareSheet(url: url) { + bridge.hlsRecorder.pendingExportURL = nil + } } } #endif @@ -707,7 +712,7 @@ struct ControlToolbar: View { Text(bridge.currentTrackLabel) .font(.system(size: 11, design: .monospaced)) .foregroundColor(.white) - .frame(minWidth: 50, height: 28) + .frame(height: 28) .padding(.horizontal, 4) .background(Color.white.opacity(0.15)) .cornerRadius(4)