mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 13:33:42 +00:00
Style fixes
This commit is contained in:
parent
55f4a4a2a1
commit
2413526d70
@ -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
|
||||
}
|
||||
|
@ -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>()
|
||||
|
@ -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
|
||||
|
@ -16,7 +16,7 @@ final class PlayerViewController: NSViewController {
|
||||
return [ratio, 1.0].max()!
|
||||
}
|
||||
|
||||
override func viewDidDisappear() {
|
||||
func viewDidDisappear() {
|
||||
super.viewDidDisappear()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user