1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-13 22:00:31 +05:30
yattee/Shared/Constants.swift

55 lines
1.0 KiB
Swift
Raw Normal View History

2022-08-25 22:39:55 +05:30
import Foundation
import SwiftUI
struct Constants {
2022-12-04 17:51:50 +05:30
static let yatteeProtocol = "yattee://"
2022-08-25 22:39:55 +05:30
static let overlayAnimation = Animation.linear(duration: 0.2)
2022-12-10 07:31:59 +05:30
static var progressViewScale: Double {
#if os(macOS)
0.4
#else
0.6
#endif
}
static var channelThumbnailSize: Double {
#if os(tvOS)
50
#else
30
#endif
}
2022-12-16 03:11:42 +05:30
static var sidebarChannelThumbnailSize: Double {
2022-12-15 16:39:16 +05:30
#if os(macOS)
20
#else
30
#endif
}
static var channelDetailsStackSpacing: Double {
#if os(tvOS)
12
#else
6
#endif
}
2022-12-18 17:41:06 +05:30
static var descriptionVisibility: Bool {
#if os(iOS)
false
#else
true
#endif
}
2022-12-19 00:09:03 +05:30
static var nextSystemImage: String {
if #available(iOS 16, macOS 13, tvOS 16, *) {
return "film.stack"
} else {
return "list.and.film"
}
}
2022-08-25 22:39:55 +05:30
}