mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Player controls UI changes
WIP on controls Chapters working Add previews variable Add lists ids WIP
This commit is contained in:
15
Extensions/Color+Debug.swift
Normal file
15
Extensions/Color+Debug.swift
Normal 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
|
||||
}
|
||||
}
|
@@ -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
|
||||
}
|
||||
|
||||
|
@@ -2,7 +2,7 @@ import UIKit
|
||||
|
||||
extension UIViewController {
|
||||
@objc var swizzle_prefersHomeIndicatorAutoHidden: Bool {
|
||||
return true
|
||||
true
|
||||
}
|
||||
|
||||
public class func swizzleHomeIndicatorProperty() {
|
||||
|
Reference in New Issue
Block a user