fix: AutoLayout fail before view appear issue

This commit is contained in:
CMK 2021-03-15 13:43:15 +08:00
parent 8c48bce627
commit 6882788ccc
1 changed files with 2 additions and 1 deletions

View File

@ -116,6 +116,7 @@ extension WelcomeViewController: OnboardingViewControllerAppearance { }
// MARK: - UIAdaptivePresentationControllerDelegate
extension WelcomeViewController: UIAdaptivePresentationControllerDelegate {
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
}
}