mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
Remove duplicated code (#690)
This commit is contained in:
parent
485ecc8e57
commit
f9661db0df
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user