Remove duplicated code (#690)

This commit is contained in:
Nathan Mattes 2023-01-08 15:15:31 +01:00
parent 485ecc8e57
commit f9661db0df
1 changed files with 1 additions and 11 deletions

View File

@ -275,17 +275,7 @@ extension WelcomeViewController {
}
// MARK: - OnboardingViewControllerAppearance
extension WelcomeViewController: OnboardingViewControllerAppearance {
func setupNavigationBarAppearance() {
// always transparent
let barAppearance = UINavigationBarAppearance()
barAppearance.configureWithTransparentBackground()
navigationItem.standardAppearance = barAppearance
navigationItem.compactAppearance = barAppearance
navigationItem.scrollEdgeAppearance = barAppearance
navigationItem.compactScrollEdgeAppearance = barAppearance
}
}
extension WelcomeViewController: OnboardingViewControllerAppearance {}
// MARK: - UIAdaptivePresentationControllerDelegate
extension WelcomeViewController: UIAdaptivePresentationControllerDelegate {