Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The unit-test target cannot compile because its fixture assigns a now-private constant, and duration updates incorrectly reset audio playback progress to zero.
2 open issues
What changed in this PR
This PR unifies audio and video preview controls, shares their layout logic, and adjusts file-action panel handling during navigation transitions.
Changes:
- Reuses video controls for audio playback and removes the separate audio controls view.
- Converts the video preview cell from XIB-based to programmatic initialization.
- Updates shared control positioning and file-action panel dismissal and presentation handling.
| File | Description |
|---|---|
kDrive/UI/View/Files/Preview/VideoControlsView.swift |
Exposes the AirPlay button so audio previews can hide it. |
kDrive/UI/View/Files/Preview/VideoCollectionViewCell.xib |
Removes the video cell’s XIB. |
kDrive/UI/View/Files/Preview/VideoCollectionViewCell.swift |
Builds the cell programmatically and uses shared control layout. |
kDrive/UI/View/Files/Preview/PreviewCollectionViewCell.swift |
Centralizes playback-control positioning. |
kDrive/UI/View/Files/Preview/AudioControlsView.swift |
Removes the dedicated audio controls implementation. |
kDrive/UI/View/Files/Preview/AudioCollectionViewCell.swift |
Adopts shared playback controls and updates playback observations. |
kDrive/UI/Controller/MainTabViewController.swift |
Dismisses file actions before preview handoffs. |
kDrive/UI/Controller/Files/Preview/PreviewViewController+Layout.swift |
Refreshes control layout for all preview cell types. |
kDrive/UI/Controller/Files/Preview/PreviewViewController.swift |
Registers the programmatic video cell and adjusts panel and remote-control handling. |
Review effort: Balanced
BaptGrv
force-pushed
the
refactor/audio-view
branch
2 times, most recently
from
November 24, 2026 14:11
2c43c6c to
25feabb
Compare
BaptGrv
force-pushed
the
refactor/audio-view
branch
from
November 30, 2026 07:35
a75c755 to
0984a41
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





No description provided.