mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Fixes missing blur when pushing AppViewController onto modal navigation controller
This commit is contained in:
@@ -42,6 +42,7 @@ final class AppViewController: UIViewController
|
||||
@IBOutlet private var navigationBarAppNameLabel: UILabel!
|
||||
|
||||
private var _shouldResetLayout = false
|
||||
private var _viewDidAppear = false
|
||||
private var _backgroundBlurEffect: UIBlurEffect?
|
||||
private var _backgroundBlurTintColor: UIColor?
|
||||
|
||||
@@ -159,6 +160,7 @@ final class AppViewController: UIViewController
|
||||
override func viewDidAppear(_ animated: Bool)
|
||||
{
|
||||
super.viewDidAppear(animated)
|
||||
self._viewDidAppear = true
|
||||
|
||||
self._shouldResetLayout = true
|
||||
self.view.setNeedsLayout()
|
||||
@@ -328,7 +330,11 @@ final class AppViewController: UIViewController
|
||||
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?)
|
||||
{
|
||||
super.traitCollectionDidChange(previousTraitCollection)
|
||||
self._shouldResetLayout = true
|
||||
|
||||
if self._viewDidAppear
|
||||
{
|
||||
self._shouldResetLayout = true
|
||||
}
|
||||
}
|
||||
|
||||
deinit
|
||||
|
||||
Reference in New Issue
Block a user