Sticky UINavigationbar after RefreshControl refreshed since iOS 11

It seems that this issue only happens when navigationBar.isTranslucent == false. I needed this setting to get a real 100% black navigation bar.

For the time being I use this extremely dirty hack, inspired by the answer of Exception:

self.refreshControl?.endRefreshing()
if #available(iOS 11.0, *) {
    self.navigationController?.navigationBar.isTranslucent = true
    self.navigationController?.navigationBar.isTranslucent = false
}