mirror of
https://github.com/yattee/yattee.git
synced 2025-01-04 11:57:01 +00:00
Fix swiftformat issues
This commit is contained in:
parent
2330924fef
commit
dfda1181e2
@ -103,7 +103,7 @@ final class AVPlayerBackend: PlayerBackend {
|
|||||||
|
|
||||||
private var timeObserverThrottle = Throttle(interval: 2)
|
private var timeObserverThrottle = Throttle(interval: 2)
|
||||||
|
|
||||||
internal var controlsUpdates = false
|
var controlsUpdates = false
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
addFrequentTimeObserver()
|
addFrequentTimeObserver()
|
||||||
|
@ -90,7 +90,7 @@ final class MPVBackend: PlayerBackend {
|
|||||||
|
|
||||||
private var onFileLoaded: (() -> Void)?
|
private var onFileLoaded: (() -> Void)?
|
||||||
|
|
||||||
internal var controlsUpdates = false
|
var controlsUpdates = false
|
||||||
private var timeObserverThrottle = Throttle(interval: 2)
|
private var timeObserverThrottle = Throttle(interval: 2)
|
||||||
|
|
||||||
var suggestedPlaybackRates: [Double] {
|
var suggestedPlaybackRates: [Double] {
|
||||||
|
@ -13,7 +13,7 @@ final class SponsorBlockAPI: ObservableObject {
|
|||||||
@Published var segments = [Segment]()
|
@Published var segments = [Segment]()
|
||||||
|
|
||||||
static func categoryDescription(_ name: String) -> String? {
|
static func categoryDescription(_ name: String) -> String? {
|
||||||
guard Self.categories.contains(name) else {
|
guard categories.contains(name) else {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ final class SponsorBlockAPI: ObservableObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static func categoryDetails(_ name: String) -> String? {
|
static func categoryDetails(_ name: String) -> String? {
|
||||||
guard Self.categories.contains(name) else {
|
guard categories.contains(name) else {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -495,7 +495,7 @@ struct WidgetSettings: Defaults.Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static func maxLimit(_ style: WidgetListingStyle) -> Int {
|
static func maxLimit(_ style: WidgetListingStyle) -> Int {
|
||||||
Self.maxLimit[style] ?? Self.defaultLimit
|
maxLimit[style] ?? defaultLimit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,14 +45,14 @@ struct VideoPlayerView: View {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !os(tvOS)
|
#if !os(tvOS)
|
||||||
@GestureState internal var dragGestureState = false
|
@GestureState var dragGestureState = false
|
||||||
@GestureState internal var dragGestureOffset = CGSize.zero
|
@GestureState var dragGestureOffset = CGSize.zero
|
||||||
@State internal var isHorizontalDrag = false
|
@State var isHorizontalDrag = false
|
||||||
@State internal var isVerticalDrag = false
|
@State var isVerticalDrag = false
|
||||||
@State internal var viewDragOffset = Self.hiddenOffset
|
@State var viewDragOffset = Self.hiddenOffset
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ObservedObject internal var player = PlayerModel.shared
|
@ObservedObject var player = PlayerModel.shared
|
||||||
|
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
@ObservedObject private var navigation = NavigationModel.shared
|
@ObservedObject private var navigation = NavigationModel.shared
|
||||||
@ -64,9 +64,9 @@ struct VideoPlayerView: View {
|
|||||||
@Default(.playerSidebar) var playerSidebar
|
@Default(.playerSidebar) var playerSidebar
|
||||||
@Default(.gestureBackwardSeekDuration) private var gestureBackwardSeekDuration
|
@Default(.gestureBackwardSeekDuration) private var gestureBackwardSeekDuration
|
||||||
@Default(.gestureForwardSeekDuration) private var gestureForwardSeekDuration
|
@Default(.gestureForwardSeekDuration) private var gestureForwardSeekDuration
|
||||||
@Default(.avPlayerUsesSystemControls) internal var avPlayerUsesSystemControls
|
@Default(.avPlayerUsesSystemControls) var avPlayerUsesSystemControls
|
||||||
|
|
||||||
@ObservedObject internal var controlsOverlayModel = ControlOverlaysModel.shared
|
@ObservedObject var controlsOverlayModel = ControlOverlaysModel.shared
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
ZStack(alignment: overlayAlignment) {
|
ZStack(alignment: overlayAlignment) {
|
||||||
|
@ -13,7 +13,7 @@ struct ControlsBar: View {
|
|||||||
@State private var shareURL: URL?
|
@State private var shareURL: URL?
|
||||||
@Binding var expansionState: ExpansionState
|
@Binding var expansionState: ExpansionState
|
||||||
|
|
||||||
@State internal var gestureThrottle = Throttle(interval: 0.25)
|
@State var gestureThrottle = Throttle(interval: 0.25)
|
||||||
|
|
||||||
var presentingControls = true
|
var presentingControls = true
|
||||||
var backgroundEnabled = true
|
var backgroundEnabled = true
|
||||||
|
@ -9,7 +9,7 @@ final class OrientationModel {
|
|||||||
var orientation = UIInterfaceOrientation.portrait
|
var orientation = UIInterfaceOrientation.portrait
|
||||||
var lastOrientation: UIInterfaceOrientation?
|
var lastOrientation: UIInterfaceOrientation?
|
||||||
var orientationDebouncer = Debouncer(.milliseconds(300))
|
var orientationDebouncer = Debouncer(.milliseconds(300))
|
||||||
internal var orientationObserver: Any?
|
var orientationObserver: Any?
|
||||||
|
|
||||||
private var player = PlayerModel.shared
|
private var player = PlayerModel.shared
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user