1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-12 21:30:32 +05:30

Style fixes

This commit is contained in:
Arkadiusz Fal 2024-02-02 10:42:24 +01:00
parent 55f4a4a2a1
commit 2413526d70
4 changed files with 5 additions and 4 deletions

View File

@ -154,7 +154,8 @@ final class PipedAPI: Service, ObservableObject, VideosAPI {
method: .post, method: .post,
parameters: ["username": username, "password": password], parameters: ["username": username, "password": password],
encoding: JSONEncoding.default encoding: JSONEncoding.default
).responseDecodable(of: JSON.self) { [weak self] response in )
.responseDecodable(of: JSON.self) { [weak self] response in
guard let self else { guard let self else {
return return
} }

View File

@ -1,7 +1,7 @@
import Foundation import Foundation
import SwiftUI import SwiftUI
class ImportSettingsSheetViewModel: ObservableObject { final class ImportSettingsSheetViewModel: ObservableObject {
static let shared = ImportSettingsSheetViewModel() static let shared = ImportSettingsSheetViewModel()
@Published var selectedInstances = Set<Instance.ID>() @Published var selectedInstances = Set<Instance.ID>()

View File

@ -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 var gestureThrottle = Throttle(interval: 0.25) // swiftlint:disable:this swiftui_state_private @State var gestureThrottle = Throttle(interval: 0.25) // swiftlint:disable:this private_swiftui_state
var presentingControls = true var presentingControls = true
var backgroundEnabled = true var backgroundEnabled = true

View File

@ -16,7 +16,7 @@ final class PlayerViewController: NSViewController {
return [ratio, 1.0].max()! return [ratio, 1.0].max()!
} }
override func viewDidDisappear() { func viewDidDisappear() {
super.viewDidDisappear() super.viewDidDisappear()
} }