fixed stuffs (#116)

This commit is contained in:
cranci 2025-04-25 21:45:35 +02:00 committed by GitHub
parent 4f524964d0
commit ed6fa24f92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -858,7 +858,11 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele
private func setupHoldSpeedIndicator() {
let config = UIImage.SymbolConfiguration(pointSize: 14, weight: .bold)
let image = UIImage(systemName: "forward.fill", withConfiguration: config)
let speed = UserDefaults.standard.float(forKey: "holdSpeedPlayer")
var speed = UserDefaults.standard.float(forKey: "holdSpeedPlayer")
if speed == 0.0 {
speed = 2.0
}
holdSpeedIndicator = UIButton(type: .system)
holdSpeedIndicator.setTitle(" \(speed)", for: .normal)