Using Swift 3 with Xcode 9 I am using a large view UINavigationBar
:
if #available(iOS 11.0, *) {
navigationBar?.prefersLargeTitles = true
UINavigationBar.appearance().largeTitleTextAttributes = [
NSForegroundColorAttributeName: Colors.black
]
}
When I scroll a UITableView
, the panel resets too quickly, which creates unwanted space:
Before:

After:

At the moment of touching the UITableView
bar collapses.
TableView has the following properties:
let rect = CGRect(
x: 0,
y: UIApplication.shared.statusBarView?.frame.height ?? 20,
width: UIScreen.main.bounds.width,
height: UIScreen.main.bounds.height
)
let tableView = UITableView(frame: rect)
Top insert tableView
is equalself.navigationController?.navigationBar.frame.height ?? 44
Also, the parameter is tableView
set to:
if #available(iOS 11.0, *) {
self.contentInsetAdjustmentBehavior = .never
}
The strip is transparent, and I want to keep it. What am I missing? Help is much appreciated.
source
share