-
Notifications
You must be signed in to change notification settings - Fork 9
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
base: externalLinks-famousLastFivePercent
Are you sure you want to change the base?
feat: External links download all progres UI #1375
Conversation
Quality Gate passedIssues Measures |
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.
left some notes for reviewer
private func downloadAll(sender: Any?, publicShareProxy: PublicShareProxy) { | ||
let button = sender as? UIButton | ||
button?.isEnabled = false | ||
configuration.rightBarButtons = [.downloadingAll] |
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.
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 |
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.
Having an action matching our pattern of calling on a UITabBarItem with a custom view was not trivial.
Display an activity indicator while the download proceeds.
Can cancel a download all action with a tap.
root pr #1349