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,
parameters: ["username": username, "password": password],
encoding: JSONEncoding.default
).responseDecodable(of: JSON.self) { [weak self] response in
)
.responseDecodable(of: JSON.self) { [weak self] response in
guard let self else {
return
}

View File

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

View File

@ -13,7 +13,7 @@ struct ControlsBar: View {
@State private var shareURL: URL?
@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 backgroundEnabled = true

View File

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