Skip to content
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] PagingLibraryView - Mirror iOS "Hot Reload" Functionality #1408

Merged
merged 8 commits into from
Jan 24, 2025

Conversation

JPKribs
Copy link
Member

@JPKribs JPKribs commented Jan 23, 2025

Summary

This is almost just a complete copy / paste of the iOS functionality into tvOS. The only changes I made to this on this tvOS side is the .onChange( before, after... that tvOS wants. Additionally, tvOS only needs one layout while iOS needs Phone vs Tablet.

Finally, I just added the settings to the CustomizeSettingsView. The Remember Sort / Layout work but since we don't have filters/sorting they aren't really usable. I know that is another conversation so I'm fine to disable those as well but I thought I would start with those enabled for now.

I have tested this and confirmed that this works as intended. I left a comment in place of where a LetterPicker would go. See the video for an example of this.

This is a continuation / resolution to this:

#1213 (review)

Additionally, this is a good starting point for #1407 but without the UX/UI discussions that are needed to make that work appropriately.

The only other change that shows up in iOS as well is adding Remember Sort/Layout labels instead of plaintext.

Edit: See additional examples of hot reloading the PagingLibraryView

Videos

Poster Change
Simulator.Screen.Recording.-.Apple.TV.4K.3rd.generation.-.2025-01-23.at.10.57.13.mp4
Grid/List Change
Simulator.Screen.Recording.-.Apple.TV.4K.3rd.generation.-.2025-01-23.at.17.26.11.mp4
Column Change
Simulator.Screen.Recording.-.Apple.TV.4K.3rd.generation.-.2025-01-23.at.17.26.27.mp4

@JPKribs JPKribs changed the title [tvOS] PagingLIbraryView - Mirror iOS "Hot Reload" Functionality [tvOS] PagingLibraryView - Mirror iOS "Hot Reload" Functionality Jan 23, 2025
Copy link
Member

@LePips LePips left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@LePips LePips merged commit 4ca7883 into jellyfin:main Jan 24, 2025
4 checks passed
@JPKribs JPKribs deleted the tvOSPagingLibraryViewConsolidation branch January 24, 2025 23:23
@JPKribs JPKribs added the enhancement New feature or request label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants