iOS 11 prefersLargeTitles not updating until scroll
I had the same problem. Although you are not using Storyboards but I hope this could help someone. I checked "Prefer Large Titles" for the Navigation Controller (not the View Controller) I embedded my TableViewController in. All the View Controllers after the Navigation Controller turned and had large titles, and it should work.
Swift - NavigationBar issue with SearchController
When not using a translucent
NavigationBar
you need to ensure that both adjusts scroll view insets
and extend edges under opaque bars
are set to true on your ViewController
.
Link of the answer:
Setting NavigationController's NavigationBar translucent property to false causes extra padding
Prefer Large Titles and RefreshControl not working well
At the end what worked for me was:
In order to fix the RefreshControl progress bar disappearing bug with large titles:
self.extendedLayoutIncludesOpaqueBars = true
In order to fix the list offset after
refreshcontrol.endRefreshing()
:let top = self.tableView.adjustedContentInset.top
let y = self.refreshControl!.frame.maxY + top
self.tableView.setContentOffset(CGPoint(x: 0, y: -y), animated:true)
Related Topics
Subclass of Gkgraphnode Costtonode Method Never Getting Called
In Swift, How to Remove a Uiview from Memory Completely
How to Get Unmanaged Object from Realm Query in Swift
How to Filter on an Array of Objects in Swift
Using Swift Library in Xamarin
Detail View Is Not Updated When the Model Is Updated (Using List) Swiftui
How to Rotate Object in a Scene with Pan Gesture - Scenekit
Testing an Executable with Swift
Why Does Swift Return an Unexpected Pointer When Converting an Optional String into an Unsafepointer
Swiftui: Navigation Bar Title in Reusable Cross-Platform (iOS & MACos) View
Break on Any Occurrence of "Fatal Error: Unexpectedly Found Nil While Unwrapping an Optional Value"
Swift String VS. String! VS. String
Where Is the .Camera Anchorentity Located
Animate the Fractioncomplete of Uiviewpropertyanimator for Blurring the Background
How to Cast an _Nsmallocblock_ to Its Underlying Type in Swift 3
Clearing Uiwebview's Cache in Swift
Fbsdkapplicationdelegate Application Openurl:Sourceapplication:Annotation Deprecated