mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Fix swiftformat offenses
This commit is contained in:
parent
f88a1d17d6
commit
89dfbdb5c7
@ -415,6 +415,7 @@ final class PipedAPI: Service, ObservableObject, VideosAPI {
|
|||||||
if let channel = extractChannel(from: content) {
|
if let channel = extractChannel(from: content) {
|
||||||
return ContentItem(channel: channel)
|
return ContentItem(channel: channel)
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -542,6 +542,7 @@ final class AVPlayerBackend: PlayerBackend {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
case .failed:
|
case .failed:
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
self.model.playerError = item.error
|
self.model.playerError = item.error
|
||||||
|
@ -469,6 +469,7 @@ struct FavoriteItemView: View {
|
|||||||
switch item.section {
|
switch item.section {
|
||||||
case .history:
|
case .history:
|
||||||
return nil
|
return nil
|
||||||
|
|
||||||
case .subscriptions:
|
case .subscriptions:
|
||||||
if accounts.app.supportsSubscriptions {
|
if accounts.app.supportsSubscriptions {
|
||||||
return accounts.api.feed(1)
|
return accounts.api.feed(1)
|
||||||
|
@ -30,7 +30,6 @@ enum PlayerControlsLayout: String, CaseIterable, Defaults.Serializable {
|
|||||||
#else
|
#else
|
||||||
return isIPad
|
return isIPad
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
case .large:
|
case .large:
|
||||||
return true
|
return true
|
||||||
case .medium:
|
case .medium:
|
||||||
|
@ -164,7 +164,6 @@ struct VideoActions: View {
|
|||||||
}
|
}
|
||||||
case .musicMode:
|
case .musicMode:
|
||||||
actionButton("Music", systemImage: "music.note", active: player.musicMode, action: player.toggleMusicMode)
|
actionButton("Music", systemImage: "music.note", active: player.musicMode, action: player.toggleMusicMode)
|
||||||
|
|
||||||
case .settings:
|
case .settings:
|
||||||
actionButton("Settings", systemImage: "gear") {
|
actionButton("Settings", systemImage: "gear") {
|
||||||
withAnimation(ControlOverlaysModel.animation) {
|
withAnimation(ControlOverlaysModel.animation) {
|
||||||
@ -179,7 +178,6 @@ struct VideoActions: View {
|
|||||||
actionButton("Hide", systemImage: "chevron.down") {
|
actionButton("Hide", systemImage: "chevron.down") {
|
||||||
player.hide(animate: true)
|
player.hide(animate: true)
|
||||||
}
|
}
|
||||||
|
|
||||||
case .close:
|
case .close:
|
||||||
actionButton("Close", systemImage: "xmark") {
|
actionButton("Close", systemImage: "xmark") {
|
||||||
player.closeCurrentItem()
|
player.closeCurrentItem()
|
||||||
|
@ -81,7 +81,7 @@ struct FeedView: View {
|
|||||||
#if os(tvOS)
|
#if os(tvOS)
|
||||||
|
|
||||||
var accountsPicker: some View {
|
var accountsPicker: some View {
|
||||||
ForEach(accountsModel.sortedAccounts.filter{ $0.anonymous == false }) { account in
|
ForEach(accountsModel.sortedAccounts.filter { $0.anonymous == false }) { account in
|
||||||
Button(action: {
|
Button(action: {
|
||||||
AccountsModel.shared.setCurrent(account)
|
AccountsModel.shared.setCurrent(account)
|
||||||
}) {
|
}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user