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

Add a fullscreen button to TimelineMediaPreviewScreen and hook up swiping through the timeline. #3638

Merged
merged 6 commits into from
Dec 18, 2024

Conversation

pixlwave
Copy link
Member

@pixlwave pixlwave commented Dec 18, 2024

Not ideal, but a good enough workaround for now as adding a tap gesture would conflict with the preview controller.

Additionally adds a second attempt to stop the thumbnail appearing upside-down while dismissing the view (should work on iOS 18.1 and 18.2 this time, although there is occasionally a small flicker).

Additionally additionally, all of the items in the media events timeline are now loaded into the preview controller so that you can swipe between them. (Pagination not included).

Simulator.Screen.Recording.-.iPhone.16.Pro.-.2024-12-18.at.13.24.09.mp4

@pixlwave pixlwave requested a review from a team as a code owner December 18, 2024 13:24
@pixlwave pixlwave requested review from Velin92 and removed request for a team December 18, 2024 13:24
@pixlwave pixlwave added the pr-wip for anything that isn't ready to ship and will be enabled at a later date label Dec 18, 2024
Copy link

codecov bot commented Dec 18, 2024

Codecov Report

Attention: Patch coverage is 37.80488% with 51 lines in your changes missing coverage. Please review.

Project coverage is 78.61%. Comparing base (435dfb8) to head (bd7ecf5).
Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
...reviewScreen/View/TimelineMediaPreviewScreen.swift 0.00% 41 Missing ⚠️
...reviewScreen/TimelineMediaPreviewCoordinator.swift 0.00% 4 Missing ⚠️
...FilePreviewScreen/TimelineMediaPreviewModels.swift 85.71% 2 Missing ⚠️
...ineScreen/MediaEventsTimelineScreenViewModel.swift 0.00% 2 Missing ⚠️
...rdinators/MediaEventsTimelineFlowCoordinator.swift 0.00% 1 Missing ⚠️
...imelineScreen/View/MediaEventsTimelineScreen.swift 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3638      +/-   ##
===========================================
- Coverage    78.64%   78.61%   -0.04%     
===========================================
  Files          788      788              
  Lines        66590    66643      +53     
===========================================
+ Hits         52371    52389      +18     
- Misses       14219    14254      +35     
Flag Coverage Δ
unittests 70.11% <37.80%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pixlwave pixlwave force-pushed the doug/full-screen-button branch from 4ac308a to 6ab2441 Compare December 18, 2024 16:27
@pixlwave pixlwave changed the title Add a fullscreen button to media previews. Add a fullscreen button to TimelineMediaPreviewScreen and hook up swiping through the timeline. Dec 18, 2024
@pixlwave pixlwave enabled auto-merge (squash) December 18, 2024 18:57
@pixlwave pixlwave merged commit e7cc807 into develop Dec 18, 2024
8 checks passed
@pixlwave pixlwave deleted the doug/full-screen-button branch December 18, 2024 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-wip for anything that isn't ready to ship and will be enabled at a later date
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants