mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Fix lint issues
This commit is contained in:
@@ -25,9 +25,8 @@ struct OpeningStream: View {
|
||||
if let selection = player.streamSelection {
|
||||
if selection.isLocal {
|
||||
return "Opening file...".localized()
|
||||
} else {
|
||||
return String(format: "Opening %@ stream...".localized(), selection.shortQuality)
|
||||
}
|
||||
return String(format: "Opening %@ stream...".localized(), selection.shortQuality)
|
||||
}
|
||||
|
||||
return "Loading streams...".localized()
|
||||
|
@@ -193,8 +193,11 @@ struct PlayerControls: View {
|
||||
.frame(maxWidth: .infinity)
|
||||
#if os(tvOS)
|
||||
.onChange(of: model.presentingControls) { newValue in
|
||||
if newValue { focusedField = .play }
|
||||
else { focusedField = nil }
|
||||
if newValue {
|
||||
focusedField = .play
|
||||
} else {
|
||||
focusedField = nil
|
||||
}
|
||||
}
|
||||
.onChange(of: focusedField) { _ in model.resetTimer() }
|
||||
#else
|
||||
|
@@ -47,7 +47,7 @@ struct TVControls: UIViewRepresentable {
|
||||
|
||||
func updateUIView(_: UIView, context _: Context) {}
|
||||
|
||||
func makeCoordinator() -> TVControls.Coordinator {
|
||||
func makeCoordinator() -> Self.Coordinator {
|
||||
Coordinator(controlsArea)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user