Fix build issues

This commit is contained in:
Arkadiusz Fal
2024-05-16 18:53:47 +02:00
parent b783db30b6
commit 4ce9dc6729
10 changed files with 120 additions and 81 deletions

View File

@@ -3,7 +3,6 @@ import Foundation
import SwiftUI
enum Constants {
static let yatteeProtocol = "yattee://"
static let overlayAnimation = Animation.linear(duration: 0.2)
static var isAppleTV: Bool {
@@ -98,6 +97,20 @@ enum Constants {
#endif
}
static var defaultNavigationStyle: NavigationStyle {
#if os(macOS)
return .sidebar
#elseif os(iOS)
if isIPad {
return .sidebar
} else {
return .tab
}
#else
return .tab
#endif
}
static func seekIcon(_ type: String, _ interval: TimeInterval) -> String {
let interval = Int(interval)
let allVersions = [10, 15, 30, 45, 60, 75, 90]