forked from zelo72/mastodon-ios
fix: AutoLayout fail before view appear issue
This commit is contained in:
parent
8c48bce627
commit
6882788ccc
|
@ -116,6 +116,7 @@ extension WelcomeViewController: OnboardingViewControllerAppearance { }
|
||||||
// MARK: - UIAdaptivePresentationControllerDelegate
|
// MARK: - UIAdaptivePresentationControllerDelegate
|
||||||
extension WelcomeViewController: UIAdaptivePresentationControllerDelegate {
|
extension WelcomeViewController: UIAdaptivePresentationControllerDelegate {
|
||||||
func adaptivePresentationStyle(for controller: UIPresentationController, traitCollection: UITraitCollection) -> UIModalPresentationStyle {
|
func adaptivePresentationStyle(for controller: UIPresentationController, traitCollection: UITraitCollection) -> UIModalPresentationStyle {
|
||||||
return .fullScreen
|
// make underneath view controller alive to fix layout issue due to view life cycle
|
||||||
|
return .overFullScreen
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue