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

pull to refresh on goal vc #130

Merged
merged 9 commits into from
Aug 31, 2020
Merged

pull to refresh on goal vc #130

merged 9 commits into from
Aug 31, 2020

Conversation

krugerk
Copy link
Contributor

@krugerk krugerk commented Aug 10, 2020

fixed #84

provides the scrollView with a refreshControl and configures the refreshControl to refresh (poll for the changes to the graph, then refresh the goal; same as before via the navBarItem) on valueChanged

removes the now redundant refresh navBarItem

little bit of 'clean code' around the code touched

@krugerk krugerk added the UVI Will count as a User-Visible Improvement label Aug 10, 2020
@krugerk krugerk requested a review from andrewpbrett August 15, 2020 01:51
@krugerk krugerk added the PEA Easy-peasy label Aug 15, 2020
@krugerk krugerk self-assigned this Aug 19, 2020
self.syncHealthDataButtonPressed(numDays: 7)
}

private var previouslySeenSyncDayAmount: [Int] {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

rename: plural

@@ -419,7 +421,7 @@ class GalleryViewController: UIViewController, UICollectionViewDelegateFlowLayou
self.present(alert, animated: true, completion: nil)
}
}
self.refreshControl.endRefreshing()
self.collectionView?.refreshControl?.endRefreshing()
MBProgressHUD.hideAllHUDs(for: self.view, animated: true)
self.collectionView!.reloadData()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

collectionView? two lines earlier and collectionView! here?

be consistent

@@ -373,7 +375,7 @@ class GalleryViewController: UIViewController, UICollectionViewDelegateFlowLayou
@objc func didFetchGoals() {
self.sortGoals()
self.setupHealthKit()
self.refreshControl.endRefreshing()
self.collectionView?.refreshControl?.endRefreshing()
MBProgressHUD.hideAllHUDs(for: self.view, animated: true)
self.collectionView!.reloadData()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

!

@krugerk krugerk added this to the 5.8 milestone Aug 23, 2020
@andrewpbrett andrewpbrett merged commit 5be4254 into beeminder:master Aug 31, 2020
@krugerk krugerk deleted the feature/84-pull-to-refresh-on-goalVC branch September 1, 2020 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PEA Easy-peasy UVI Will count as a User-Visible Improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support pull-to-refresh on goalVC
2 participants