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

feat: External links download all progres UI #1375

Open
wants to merge 4 commits into
base: externalLinks-famousLastFivePercent
Choose a base branch
from

Conversation

adrien-coye
Copy link
Contributor

@adrien-coye adrien-coye commented Jan 9, 2025

Display an activity indicator while the download proceeds.
Can cancel a download all action with a tap.

root pr #1349

@adrien-coye adrien-coye marked this pull request as ready for review January 9, 2025 13:27
Copy link

sonarqubecloud bot commented Jan 9, 2025

Copy link
Contributor Author

@adrien-coye adrien-coye left a comment

Choose a reason for hiding this comment

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

left some notes for reviewer

private func downloadAll(sender: Any?, publicShareProxy: PublicShareProxy) {
let button = sender as? UIButton
button?.isEnabled = false
configuration.rightBarButtons = [.downloadingAll]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

IMO it is cleaner to change the configuration and refresh than write directly to the ViewModel state.

let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(cancelDownloadPressed))
activityView.addGestureRecognizer(tapGestureRecognizer)

customView = activityView
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Having an action matching our pattern of calling on a UITabBarItem with a custom view was not trivial.

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.

1 participant