Minor performance improvement

This commit is contained in:
Arkadiusz Fal
2023-04-22 10:55:36 +02:00
parent b59baa6fab
commit 8ef016d792
2 changed files with 3 additions and 3 deletions

View File

@@ -181,7 +181,7 @@ struct PlayerControls: View {
#endif
}
}
.opacity(model.presentingControls ? 1 : 0)
.opacity(model.presentingControls && !player.availableStreams.isEmpty ? 1 : 0)
}
}
.frame(maxWidth: .infinity)