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