You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Table view buttons and title disappears after going back from full screen presented controller.
To Reproduce
Start observing a collection view (or table view) scroll.
Scroll to hide the nav bar
Present a modal view controller with full screen
Stop observing (in viewWillDissapear) with showingNavBar = false
Dismiss the presented view controller
The original controller has the nav bar displayed and all its items (title, buttons) are transparent.
You can also reproduce it by adding this code to CollectionViewController.swift in the demo app.
// line 38, replace commented line
// navigationController.stopFollowingScrollView()
navigationController.stopFollowingScrollView(showingNavbar: false)
// line 44, replace commented lines
// let storyBoard = UIStoryboard(name: "Main", bundle: nil)
// let mainViewController = storyBoard.instantiateViewController(withIdentifier: "TestViewController")
// self.present(mainViewController, animated: true, completion: nil)
let c = UIViewController()
c.modalPresentationStyle = .fullScreen
c.view.backgroundColor = .red
present(c, animated: true)
Timer.scheduledTimer(withTimeInterval: 2, repeats: false) { _ in
c.dismiss(animated: true, completion: nil)
}
Expected behavior
The nav bar should remain hidden or at least visible with all this items
The text was updated successfully, but these errors were encountered:
Hey @ManueGE
I think this is UIKit enforcing the navbar height when returning from the presentation, I reckon I have no way of controlling this. The only workaround that I can offer is not calling the stopFollowingScrollview method, the result is not seamless, but it works.
Describe the bug
Table view buttons and title disappears after going back from full screen presented controller.
To Reproduce
viewWillDissapear
) withshowingNavBar = false
You can also reproduce it by adding this code to
CollectionViewController.swift
in the demo app.Expected behavior
The text was updated successfully, but these errors were encountered: