Repository navigation
refactor: Audio player - #2087
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved preview-state bugs can obscure audio controls, leave the back button hidden after exiting fullscreen, and retain the previous file’s background image on iOS 26+.
3 open issues
What changed in this PR
Refactors the audio preview player from a XIB-based cell to programmatic UIKit, separating playback controls and updating its integration with the file preview screen.
Changes:
- Extracts playback controls into
AudioControlsViewand rebuilds the audio cell layout in code. - Initializes preview tap gestures for both programmatic and storyboard-created cells.
- Adjusts audio navigation-bar behavior and filters fallback thumbnails from extended backgrounds.
| File | Description |
|---|---|
kDrive/UI/View/Files/Preview/PreviewCollectionViewCell.swift |
Sets up tap gestures in both initializers. |
kDrive/UI/View/Files/Preview/AudioControlsView.swift |
Adds playback buttons, time labels, and seeking controls. |
kDrive/UI/View/Files/Preview/AudioCollectionViewCell.xib |
Removes the replaced Interface Builder layout. |
kDrive/UI/View/Files/Preview/AudioCollectionViewCell.swift |
Builds the audio layout programmatically and connects playback controls. |
kDrive/UI/Controller/Files/Preview/PreviewViewController.swift |
Registers the programmatic cell and adjusts navigation and background handling. |
Review effort: Balanced
31819cd to
61f7a25
Compare
|
There was a problem hiding this comment.
🟡 Changes recommended
Swiping between images and audio in manual fullscreen retains the previous page’s navigation-bar state, hiding the audio back button or leaving the bar visible over an image.
1 open issue
3 resolved since last review
Review effort: Balanced
adrien-coye
left a comment
There was a problem hiding this comment.
Was checked on iPad and iPhone.
Also checked on iOS17.




No description provided.