Skip to content

Commit

Permalink
Linting fixes. Unsure if this resolves "Wrap Lines that exceed specif…
Browse files Browse the repository at this point in the history
…ied maximum width." Resolves tvOS Build errors.
  • Loading branch information
Joe Kribs committed Sep 20, 2023
1 parent 670ff5b commit 1111482
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 0 additions & 2 deletions Swiftfin.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
091B5A8A2683142E00D78B61 /* ServerDiscovery.swift in Sources */ = {isa = PBXBuildFile; fileRef = 091B5A872683142E00D78B61 /* ServerDiscovery.swift */; };
091B5A8D268315D400D78B61 /* ServerDiscovery.swift in Sources */ = {isa = PBXBuildFile; fileRef = 091B5A872683142E00D78B61 /* ServerDiscovery.swift */; };
4E5E48E52AB59806003F1B48 /* CustomizeViewsSettings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E5E48E42AB59806003F1B48 /* CustomizeViewsSettings.swift */; };
4E5E48E62AB59806003F1B48 /* CustomizeViewsSettings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E5E48E42AB59806003F1B48 /* CustomizeViewsSettings.swift */; };
4E8B34EA2AB91B6E0018F305 /* FilterDrawerSelection.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E8B34E92AB91B6E0018F305 /* FilterDrawerSelection.swift */; };
4E8B34EB2AB91B6E0018F305 /* FilterDrawerSelection.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E8B34E92AB91B6E0018F305 /* FilterDrawerSelection.swift */; };
4EAA35BB2AB9699B00D840DD /* FilterDrawerButtonSelectorView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4EAA35BA2AB9699B00D840DD /* FilterDrawerButtonSelectorView.swift */; };
Expand Down Expand Up @@ -3183,7 +3182,6 @@
E1DC9845296DECB600982F06 /* ProgressIndicator.swift in Sources */,
E1DA656A28E78B5900592A73 /* SpecialFeaturesViewModel.swift in Sources */,
E1C925F928875647002A7A66 /* LatestInLibraryView.swift in Sources */,
4E5E48E62AB59806003F1B48 /* CustomizeViewsSettings.swift in Sources */,
E11B1B6D2718CD68006DA3E8 /* JellyfinAPIError.swift in Sources */,
E12CC1C928D132B800678D5D /* RecentlyAddedView.swift in Sources */,
E1937A3C288E54AD00CB80AA /* BaseItemDto+Images.swift in Sources */,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ struct FilterDrawerHStack: View {
}
}
ForEach(filterDrawerButtonSelection, id: \.self) { button in
FilterDrawerButton(title: button.displayTitle, activated: button.isItemsFilterActive(activeFilters: viewModel.currentFilters))
FilterDrawerButton(title: button.displayTitle, activated: button.isItemsFilterActive(
activeFilters: viewModel.currentFilters
))
.onSelect {
onSelect(.init(
title: button.displayTitle,
Expand Down
2 changes: 1 addition & 1 deletion Swiftfin/Views/LibraryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct LibraryView: View {

@Default(.Customization.Filters.libraryFilterDrawerButtons)
private var filterDrawerButtonSelection

@EnvironmentObject
private var router: LibraryCoordinator.Router

Expand Down
14 changes: 7 additions & 7 deletions Swiftfin/Views/SettingsView/CustomizeViewsSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,22 +78,22 @@ struct CustomizeViewsSettings: View {

Toggle(L10n.favorites, isOn: $showFavorites)
Toggle(L10n.randomImage, isOn: $libraryRandomImage)

} header: {
L10n.library.text
}

Section {

ChevronButton(title: L10n.library)
.onSelect {
router.route(to: \.filterDrawerButtonSelector, $libraryFilterDrawerButtons)
}
.onSelect {
router.route(to: \.filterDrawerButtonSelector, $libraryFilterDrawerButtons)
}

ChevronButton(title: L10n.search)
.onSelect {
router.route(to: \.filterDrawerButtonSelector, $searchFilterDrawerButtons)
}
.onSelect {
router.route(to: \.filterDrawerButtonSelector, $searchFilterDrawerButtons)
}

} header: {
L10n.filters.text
Expand Down

0 comments on commit 1111482

Please sign in to comment.