Skip to content

refactor: Audio player - #2087

Merged
adrien-coye merged 8 commits into
masterfrom
feat/audio-player
Nov 20, 2026
Merged

adrien-coye merged 8 commits into
masterfrom
feat/audio-player

Conversation

@BaptGrv

@BaptGrv BaptGrv commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI balanced review requested due to automatic review settings November 20, 2026 07:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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 AudioControlsView and 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

@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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 adrien-coye left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Was checked on iPad and iPhone.
Also checked on iOS17.

@adrien-coye
adrien-coye merged commit 12d51ba into master Nov 20, 2026
14 of 15 checks passed
@adrien-coye adrien-coye added this to the 6.3.1 milestone Nov 20, 2026
@adrien-coye
adrien-coye deleted the feat/audio-player branch November 20, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants