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

Bug while PullToRefresh is active (LargeTiles: On) #18

Closed
undeaDD opened this issue Jun 26, 2018 · 1 comment
Closed

Bug while PullToRefresh is active (LargeTiles: On) #18

undeaDD opened this issue Jun 26, 2018 · 1 comment

Comments

@undeaDD
Copy link

undeaDD commented Jun 26, 2018

When PullToRefresh is activated the Bars get drawn at the exact Position.
But shortly after that the Navigationbar shrinks back to its minimum Size (when pulled too far).
The Already started BusyNavigationBars do not shrink / move up. Instead they just stay there.
Any way to get around that behavior? (Any way to wait till the navigationbar is shrinked again and then display the busybars ? idk)

image 2018-06-26 14 26 28

CodeBlock:

self.navigationController?.navigationBar.start(options) UIApplication.shared.isNetworkActivityIndicatorVisible = true Utils.reloadAdminData(completion: { (result) in DispatchQueue.main.async { self.data = result self.tableView.reloadData() UIApplication.shared.isNetworkActivityIndicatorVisible = false self.navigationController?.navigationBar.stop() self.refreshControl.endRefreshing() } })

@undeaDD
Copy link
Author

undeaDD commented Jun 26, 2018

I figured out a small (not bugfree) workaround that works for me ;)
Still would be great to see this fixed / implemented.

Functions that changed (backwards compatible):
func insertLoadingView(_ largeTitle: Bool)
-> to adjust for a larger navigationbar height

Trick:
start animation on: "scrollViewDidEndScrollingAnimation" ( only once !!! -> gets called twice per
pullToRefresh)
stop before: "endRefreshing"

My Example Implementation:
navbartest.zip

@undeaDD undeaDD closed this as not planned Won't fix, can't repro, duplicate, stale Jul 18, 2023
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

No branches or pull requests

1 participant