fix and lint

This commit is contained in:
Ethan Pippin 2022-03-28 23:29:24 -06:00
parent 0956871f77
commit ee9f3c02f0
3 changed files with 28 additions and 27 deletions

View File

@ -120,7 +120,7 @@ struct LiveTVChannelItemElement: View {
.stroke(isFocused ? Color.blue : Color.clear, lineWidth: 4)) .stroke(isFocused ? Color.blue : Color.clear, lineWidth: 4))
.cornerRadius(20) .cornerRadius(20)
.scaleEffect(isFocused ? 1.1 : 1) .scaleEffect(isFocused ? 1.1 : 1)
.focusable(true) // .focusable(true)
.focused($focused) .focused($focused)
.onChange(of: focused) { foc in .onChange(of: focused) { foc in
withAnimation(.linear(duration: 0.15)) { withAnimation(.linear(duration: 0.15)) {

View File

@ -29,7 +29,8 @@ struct EpisodesRowView<RowManager>: View where RowManager: EpisodesRowManager {
} }
} else { } else {
Menu { Menu {
ForEach(Array(viewModel.seasonsEpisodes.keys).sorted(by: { $0.name ?? "" < $1.name ?? "" }), id: \.self) { season in ForEach(Array(viewModel.seasonsEpisodes.keys).sorted(by: { $0.indexNumber ?? 0 < $1.indexNumber ?? 0 }),
id: \.self) { season in
Button { Button {
viewModel.select(season: season) viewModel.select(season: season)
} label: { } label: {