Fixes tapping buttons underneath navigation bar on SourceDetailViewController/AppViewController

This commit is contained in:
Riley Testut
2023-04-04 17:12:18 -05:00
parent d7410b7f60
commit 0b3765f3c4
3 changed files with 32 additions and 3 deletions

View File

@@ -481,15 +481,17 @@ private extension HeaderContentViewController
func updateNavigationBarAppearance(isHidden: Bool)
{
let barAppearance = self.navigationItem.standardAppearance ?? UINavigationBarAppearance()
let barAppearance = self.navigationItem.standardAppearance as? NavigationBarAppearance ?? NavigationBarAppearance()
if isHidden
{
barAppearance.configureWithTransparentBackground()
barAppearance.ignoresUserInteraction = true
}
else
{
barAppearance.configureWithDefaultBackground()
barAppearance.ignoresUserInteraction = false
}
barAppearance.titleTextAttributes = [.foregroundColor: UIColor.clear]