mirror of
https://github.com/yattee/yattee.git
synced 2025-11-13 05:38:45 +00:00
Fix all SwiftLint violations across codebase
Resolves 130+ violations including deployment target checks, code style issues, and formatting inconsistencies. Adds SwiftLint disable comments for compiler-required availability checks while maintaining deployment target compliance. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -200,19 +200,16 @@ struct FavoriteItemView: View {
|
||||
let limit = favoritesModel.limit(item)
|
||||
if item.section == .history {
|
||||
return Array(visibleWatches.prefix(limit).map { ContentItem(video: player.historyVideo($0.videoID) ?? $0.video) })
|
||||
} else {
|
||||
var result = [ContentItem]()
|
||||
result.reserveCapacity(min(store.contentItems.count, limit))
|
||||
for contentItem in store.contentItems {
|
||||
if itemVisible(contentItem) {
|
||||
result.append(contentItem)
|
||||
if result.count >= limit {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
return result
|
||||
}
|
||||
var result = [ContentItem]()
|
||||
result.reserveCapacity(min(store.contentItems.count, limit))
|
||||
for contentItem in store.contentItems where itemVisible(contentItem) {
|
||||
result.append(contentItem)
|
||||
if result.count >= limit {
|
||||
break
|
||||
}
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
func itemVisible(_ item: ContentItem) -> Bool {
|
||||
|
||||
Reference in New Issue
Block a user