-
Notifications
You must be signed in to change notification settings - Fork 117
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
Rework the presentation of the media browser quick look view to use SwiftUI. #3619
Conversation
ef78691
to
443d9df
Compare
@@ -1581,8 +1581,8 @@ class RoomFlowCoordinator: FlowCoordinatorProtocol { | |||
MXLog.error("Unable to present room timeline for event \(itemID)") | |||
return | |||
} | |||
stateMachine.tryEvent(.dismissMediaEventsTimeline) | |||
stateMachine.tryEvent(.presentRoom(presentationAction: .eventFocus(.init(eventID: eventID, shouldSetPin: false)))) | |||
stateMachine.tryEvent(.presentRoom(presentationAction: .eventFocus(.init(eventID: eventID, shouldSetPin: false))), |
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.
couldn't we pass the animation directly in presentRoom as a variable?
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.
🙌
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## develop #3619 +/- ##
===========================================
- Coverage 78.39% 78.33% -0.06%
===========================================
Files 782 787 +5
Lines 65661 66810 +1149
===========================================
+ Hits 51472 52336 +864
- Misses 14189 14474 +285
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Quality Gate passedIssues Measures |
Now that SwiftUI has a
navigationTransition(.zoom(…))
option on iOS 18, putting the QuickLook controller inside our own NavigationStack with the right buttons is better, plus we get the matched animation instead of the preview coming from the button. This means the screen now has a Coordinator and is presented using the same system as the rest of the app. A follow-up will be to rename everything toTimelineMediaPreviewScreen
or similar.A few small hitches:
iOS.18.1.mp4