I have a UISplitView with a UINavigationBar where I on iPhone have an issue with a containing UITableView which is not directly placed under the NavigationBar. When the new effect in iOS 26 kicks in it also seems to affect to topmost UINavigationBar which I do not want. It's when the clear UINavigationBar directly over the UITableView and passes over a content that it needs to invert its title over, it does. However it also inverts everything (background + title) of another topmost uinavigationbar which I don't want. This is even opaque and have no reason to invert its colors.
Any ideas on how to disable this?
navigationItem.style = .editor navigationItem.centerItemGroups = [editorNavigationHelper.iPadCenterItemGroup()] navigationItem.rightBarButtonItems = editorNavigationHelper.rightBarButtonItems()
let documentProperties = UIDocumentProperties(url: document.fileURL)
if let itemProvider = NSItemProvider(contentsOf: document.fileURL) {
documentProperties.dragItemsProvider = { _ in
[UIDragItem(itemProvider: itemProvider)]
}
documentProperties.activityViewControllerProvider = {
UIActivityViewController(activityItems: [itemProvider], applicationActivities: nil)
}
}
navigationItem.title = if UIDevice.current.isIPhone {
document.localizedName.trimmedToMax(12, appendingDots: true, adjustForDots: true)
} else {
document.localizedName
}
navigationItem.documentProperties = documentProperties
navigationItem.titleMenuProvider = { [weak self] suggested in
guard let self else {
return UIMenu(children: [])
}
let custom = [
// ...
]
return UIMenu(children: suggested + custom)
}
let navAppearance = UINavigationBarAppearance()
navAppearance.configureWithOpaqueBackground()
navAppearance.backgroundColor = UIColor.systemBackground
navAppearance.titleTextAttributes = [.foregroundColor: UIColor.label]
if let navBar = navigationController?.navigationBar {
navBar.standardAppearance = navAppearance
navBar.scrollEdgeAppearance = navAppearance
navBar.compactAppearance = navAppearance
navBar.isTranslucent = false
navBar.backgroundColor = .systemBackground
}