mirror of
https://github.com/yattee/yattee.git
synced 2025-11-22 06:31:26 +00:00
Fix SwiftFormat and SwiftLint issues
- Fix indentation in AppSidebarNavigation, VideoCell - Replace && with comma in PlayerModel condition - Add SwiftLint suppression for necessary tvOS 17.0 availability check - Update SwiftLint config to use renamed rules and disable false positives
This commit is contained in:
@@ -15,7 +15,7 @@ struct AppSidebarNavigation: View {
|
||||
|
||||
var body: some View {
|
||||
#if os(iOS)
|
||||
content.introspect(.viewController, on: .iOS(.v15, .v16, .v17, .v18, .v26)) { viewController in
|
||||
content.introspect(.viewController, on: .iOS(.v15, .v16, .v17, .v18, .v26)) { viewController in
|
||||
// workaround for an empty supplementary view on launch
|
||||
// the supplementary view is determined by the default selection inside the
|
||||
// primary view, but the primary view is not loaded so its selection is not read
|
||||
|
||||
@@ -223,6 +223,7 @@ struct FeedView: View {
|
||||
var header: some View {
|
||||
HStack(spacing: 16) {
|
||||
#if os(tvOS)
|
||||
// swiftlint:disable:next deployment_target
|
||||
if #available(tvOS 17.0, *) {
|
||||
Menu {
|
||||
accountsPicker
|
||||
|
||||
@@ -433,9 +433,9 @@ struct VideoCell: View {
|
||||
|
||||
private var thumbnailImage: some View {
|
||||
VideoCellThumbnail(video: video)
|
||||
#if os(tvOS)
|
||||
#if os(tvOS)
|
||||
.frame(minHeight: 320)
|
||||
#endif
|
||||
#endif
|
||||
.mask(RoundedRectangle(cornerRadius: thumbnailRoundingCornerRadius))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user