-
-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tvOS] Episode Selector - State & Focus Handling #1435
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finally building out this view, I would like it to match the how we do it on iOS: using the same card design for all views. Overall, this will need to consider and work properly with focusing.
I should have checked iOS first I didn't realize you already accounted for empty rows there. I have this version on my latest commit. Is this more of what we want? |
…ons to allow focus.
Yes, like that |
Okay, I think I understand the
Regular SeasonSimulator.Screen.Recording.-.Apple.TV.4K.3rd.generation.-.2025-02-23.at.13.47.50.mp4Empty Season:Simulator.Screen.Recording.-.Apple.TV.4K.3rd.generation.-.2025-02-23.at.13.48.11.mp4Error Season:Simulator.Screen.Recording.-.Apple.TV.4K.3rd.generation.-.2025-02-23.at.13.59.57.mp4Loading Season:Simulator.Screen.Recording.-.Apple.TV.4K.3rd.generation.-.2025-02-23.at.14.01.58.mp4 |
I am done editing this PR unless there is new feedback. I'm happier with where this is now. While I'm working on this, please let me know if there is anything else that needs to be adjusted in this area. It's a very close mirror to iOS at this point. Since the The only item that doesn't have the ability to focus is the Only item I have a question on is the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't have the ability to focus is the
LoadingCard
We should have a solution where this entire view can be used regardless of this episode selector, even when loading. Instead of the 2-4 random count of loading cards, which was mainly used as a skeleton view design, having a single card like the other non-content states have to allow better focusing could be a good idea.
Sounds good. I've made this change on my latest commit. Everything looks and works as expected but I wasn't sure how to handle this:
I added a focus state but just for that? I'm not sure that's the right way to go. In testing, it all works correctly but the This is what the Simulator.Screen.Recording.-.Apple.TV.4K.3rd.generation.-.2025-02-25.at.22.41.42.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, now just some clean up.
Swiftfin tvOS/Views/ItemView/Components/EpisodeSelector/EpisodeSelector.swift
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Some polish could be that if the loading or error cards and transitions to a new state it will stay focused on the card, instead of it hopping to the seasons.
Summary
This is a very rare occurrence, but I found that if you have empty folder for a season, you can lock the episode selector until you re-enter the
ItemView
.The issue is, without episodes, the episode selector does not exist. Because of the
FocusGuide
, there is no way to go down to Cast & Crew without episodes. Additionally, because there is no set area for episodes, going back to a season that contains episodes, the selector is tiny and shoved outside the screen.This PR creates a "No episodes" filler text when episodes are not available along with a refresh button in case they want to update this season.
Issue
Simulator.Screen.Recording.-.Apple.TV.4K.3rd.generation.-.2025-02-15.at.22.01.14.mp4
Resolution
Simulator.Screen.Recording.-.Apple.TV.4K.3rd.generation.-.2025-02-15.at.22.00.39.mp4