Player controls UI changes

WIP on controls

Chapters

working

Add previews variable

Add lists ids

WIP
This commit is contained in:
Arkadiusz Fal
2022-06-18 14:39:49 +02:00
parent 9c98cf9558
commit 321c265a11
60 changed files with 2524 additions and 1320 deletions

View File

@@ -0,0 +1,15 @@
import SwiftUI
extension ShapeStyle where Self == Color {
static var debug: Color {
#if DEBUG
return Color(
red: .random(in: 0 ... 1),
green: .random(in: 0 ... 1),
blue: .random(in: 0 ... 1)
)
#else
return Color(.clear)
#endif
}
}

View File

@@ -1,8 +1,8 @@
import Foundation
extension Double {
func formattedAsPlaybackTime() -> String? {
guard !isZero, isFinite else {
func formattedAsPlaybackTime(allowZero: Bool = false) -> String? {
guard allowZero || !isZero, isFinite else {
return nil
}

View File

@@ -2,7 +2,7 @@ import UIKit
extension UIViewController {
@objc var swizzle_prefersHomeIndicatorAutoHidden: Bool {
return true
true
}
public class func swizzleHomeIndicatorProperty() {