Fix swiftformat issues

This commit is contained in:
Arkadiusz Fal 2023-09-23 15:07:27 +02:00
parent 2330924fef
commit dfda1181e2
7 changed files with 15 additions and 15 deletions

View File

@ -103,7 +103,7 @@ final class AVPlayerBackend: PlayerBackend {
private var timeObserverThrottle = Throttle(interval: 2)
internal var controlsUpdates = false
var controlsUpdates = false
init() {
addFrequentTimeObserver()

View File

@ -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] {

View File

@ -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
}

View File

@ -495,7 +495,7 @@ struct WidgetSettings: Defaults.Serializable {
}
static func maxLimit(_ style: WidgetListingStyle) -> Int {
Self.maxLimit[style] ?? Self.defaultLimit
maxLimit[style] ?? defaultLimit
}
}

View File

@ -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) {

View File

@ -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

View File

@ -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