andreamazz / andreamazz/AMScrollingNavbar

Fully Hide Follower(s) and content inset issues

Aperta
#335 35 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Swift
Stelle
6k
Fork
628
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Describe the bug**
I am replacing TLYShyNavBarManager with your library and liking it very much! However, I'm not sure I understand how to to use it correctly.

I have a UIViewController that has a full screen tableView.
I create a custom toolbar programmatically and add it as a subview to self.view (I suspect herein lies my content inset issue. With TLY, I didn't have to add it to self.view)

Everything works GREAT except:

1) The toolbar I have set as a follower does not fully hide. I can actually live with this until a future update.
2) The toolbar covers up some of the underlying tableview. This I have to fix ASAP.

Relevant code:

```objc
//Creating of toolbar
_statusBar = [[StatusBar alloc] initWithFrame:CGRectMake(0.0, 0.0, self.view.frame.size.width, 130.0)];
_statusBar.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
_statusBar.searchBar.delegate = self; //Implement search bar delegate features
[self.view addSubview:_statusBar];

//Attaching/Following
NavigationBarFollower *statusBarFollow = [[NavigationBarFollower alloc] initWithView:_statusBar direction:NavigationBarFollowerCollapseDirectionScrollUp];
[(ScrollingNavigationController *)self.navigationController followScrollView:_tableView delay:0 scrollSpeedFactor:1 collapseDirection:NavigationBarCollapseDirectionScrollDown followers:@[statusBarFollow]];
```
Here is a video demonstrating my issue!
https://imgur.com/a/hWmjgrf

In the video, my "toolbar" is the thing from the bottom of the nav bar all the way to the "games shown" stuff

Any help would be greatly appreciated! And thanks for the library!

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.