mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-21 16:42:01 +00:00
This commit is contained in:
parent
4f524964d0
commit
15c54b3d0c
1 changed files with 5 additions and 1 deletions
|
|
@ -858,7 +858,11 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele
|
||||||
private func setupHoldSpeedIndicator() {
|
private func setupHoldSpeedIndicator() {
|
||||||
let config = UIImage.SymbolConfiguration(pointSize: 14, weight: .bold)
|
let config = UIImage.SymbolConfiguration(pointSize: 14, weight: .bold)
|
||||||
let image = UIImage(systemName: "forward.fill", withConfiguration: config)
|
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 = UIButton(type: .system)
|
||||||
holdSpeedIndicator.setTitle(" \(speed)", for: .normal)
|
holdSpeedIndicator.setTitle(" \(speed)", for: .normal)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue