 
 	@available(*, unavailable, message="override viewDidLayoutSubviewsWithAnimation(_:) instead")
 	public final override func viewDidLayoutSubviews() {
-		let animation = decorationInsetsAnimation?.animation
+		let animation = decorationInsetsAnimation?.animation ?? viewLayoutAnimation
+		viewLayoutAnimation = nil
 
 		super.viewDidLayoutSubviews()
 

	}


	public override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask {
		return ViewController.defaultSupportedInterfaceOrientationsForModalPresentationStyle(modalPresentationStyle)
	}


	public typealias SeguePreparation = (segue: UIStoryboardSegue) -> Void

	private var viewLayoutAnimation: Animation?
	private var seguePreparation: SeguePreparation?


