fix tabman bug when tabbar is visible

This commit is contained in:
Ryan Nystrom
2017-09-26 21:05:13 -04:00
parent c1d80c7a37
commit 5fe34ce698
3 changed files with 11 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ LoadMoreSectionControllerDelegate {
self.repo = repo
self.client = RepositoryClient(githubClient: client, owner: repo.owner, name: repo.name)
self.type = type
super.init(nibName: nil, bundle: nil)
switch type {
@@ -51,6 +52,10 @@ LoadMoreSectionControllerDelegate {
feed.viewDidLoad()
feed.adapter.dataSource = self
// set the frame in -viewDidLoad is required when working with TabMan
feed.collectionView.frame = view.bounds
if #available(iOS 11.0, *) {
feed.collectionView.contentInsetAdjustmentBehavior = .never
}